use ts-macros directly from Github until v2.4.2 is published on npm

This commit is contained in:
Jos de Jong 2023-09-21 14:58:51 +02:00
parent ce974e2a99
commit 20078d2c87
3 changed files with 15 additions and 12 deletions

View file

@ -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);
}