Awesome
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/