Simplify phantom T props to plain null values instead of getters

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-14 00:06:53 +02:00
parent 47ca947279
commit c40568f651
2 changed files with 2 additions and 6 deletions
@@ -143,9 +143,7 @@ export function createServiceRef<
id,
scope,
multiton,
get T(): TService {
return null as TService;
},
T: null as TService,
toString() {
return `serviceRef{${options.id}}`;
},
@@ -43,9 +43,7 @@ export function createExtensionPoint<T>(
): ExtensionPoint<T> {
return {
id: options.id,
get T(): T {
return null as T;
},
T: null as T,
toString() {
return `extensionPoint{${options.id}}`;
},