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:
@@ -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}}`;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user