gvergnaud / hotscript

A library of composable functions for the type-level! Transform your TypeScript types in any way you want using functions you already know.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dump() or toString() functions

piranna opened this issue · comments

I've looked for some time, but didn't find a solution yet: is it possible to add some functions to get an AST of a type, or at least a text representation? At least basic ones... My idea is to be able to have a representation of a type in runtime, similar to JsonSchema but replaced inline. And if there's some way, can it be added to hotscript library?