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 }"
TBD
- https://github.com/kimamula/ts-transformer-keys
- https://github.com/firede/ts-transform-graphql-tag
FUJI Goro (gfx) https://github.com/gfx/