ForbesLindesay / funtypes

Runtime validation for static types
MIT License
29 stars 4 forks source link

Create a custom schema language #31

Open ForbesLindesay opened 3 years ago

ForbesLindesay commented 3 years ago

This is an alternative to https://github.com/ForbesLindesay/funtypes/issues/30

This could approximate a subset of TypeScript, and allow compiling a collection of files (connected via import statements) into a single TypeScript file (or separate .js/.d.ts) that would contain explicit interface definitions, and the code to call into the relevant funtypes.