fcasad / runtime-type-checking

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

runtime-type-checking

This is a demo for various ways to do runtime type checking in a typescript / nodejs project. Example model with space objects stolen from runtypes documentation

*See commit history*

  1. plain typeguards
  2. joi
  3. runtypes
  4. runtypes with inference
  5. json schema
  6. json schema generated from ts
  7. bonus: use generated json-schema with swagger

About


Languages

Language:TypeScript 98.6%Language:JavaScript 1.4%