feat: Runtime type reflection #17
@ -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>())
|
||||
|
Loading…
Reference in New Issue
Block a user