feat: Runtime type reflection #17

Merged
glen merged 21 commits from ts-macros-issues into main 2023-10-17 22:02:18 +00:00
Showing only changes of commit da5b2c3467 - Show all commits

View File

@ -20,3 +20,8 @@ console.log($contains!(searchItem, "erwin", "tj"));
// OK, record the type of square:
square.reflectedType = $$typeToString!<typeof square>();
type Expand<T> = T extends unknown ? { [K in keyof T]: T[K] } : never;
type Out = Expand<Dependencies<'multiply', number>>;
console.log("Deps type is", $$typeToString!<Out>())