refactor: do not use get T in component refs

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2023-11-30 09:43:45 +01:00
parent 0da9a65b89
commit 8b69319f29
@@ -34,10 +34,7 @@ export function createComponentRef<T>(options: {
const { id } = options;
return {
id,
get T(): T {
throw new Error(`tried to read ComponentRef.T of ${id}`);
},
};
} as ComponentRef<T>;
}
const coreProgressComponentRef = createComponentRef<CoreProgressComponent>({