Skip to content

PoC of TypeScript RTTI with custom transformers that use ts.TypeChecker

License

Notifications You must be signed in to change notification settings

gfx/typescript-rtti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript RTTI (Run-Time Type Information)

SYNOPSIS

With ttypescript:

{
  "compilerOptions": {
    "plugins": [
      {
        "transform": "@gfx/typescript-rtti/src/transformer.ts",
        "type": "program"
      }
    ]
  }
}
console.log(typeinfo<string>().source); // "string"
console.log(typeinfo({ foo: 42 }).source); // "{ foo: number }"

How it works

TBD

See Also

Authors

FUJI Goro (gfx) https://github.com/gfx/

About

PoC of TypeScript RTTI with custom transformers that use ts.TypeChecker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published