feat: Demonstrate a trick for further resolving the dep type at compiletime
This commit is contained in:
parent
770c302342
commit
da5b2c3467
@ -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