Skip to content

SupernaviX/typescript-type-provider-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript Type Provider POC

see it in action

What does it do?

Given a "schema" file, generates interfaces and type guards at compile time.

How does it work?

As a post-install step, this injects code into tsc.js and tsserver.js in the local copy of typescript. That code monkeypatches typescript's filesystem wrapper, and tricks it into thinking that @@schemas contains a typescript module.

Needless to say, not suitable for production code.

About

A hacky proof-of-concept for type providers in typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published