use ts-macros directly from Github until v2.4.2 is published on npm
This commit is contained in:
parent
ce974e2a99
commit
20078d2c87
3 changed files with 15 additions and 12 deletions
|
@ -84,5 +84,5 @@ export type AliasOf<Name extends string, T> = T & {aliasOf?: Name}
|
|||
// For defining implementations with type reflection
|
||||
export function $implement<Impl>(name: string, expr: Impl) {
|
||||
$$define!(name, expr, false, true); // Final `true` is export
|
||||
$$ident!(name).reflectedType = $$typeToString!<Impl>();
|
||||
$$ident!(name).reflectedType = $$typeToString!<Impl>(true, false, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue