This commit is contained in:
Schluffe
2026-03-01 23:34:45 +01:00
parent 98442cd8d1
commit c2dce421b3
3 changed files with 32 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
export const componentMap = new Map();
export function defineComponent<T>(key: string): Map<string, T> {
if (!componentMap.has(key)) {
componentMap.set(key, new Map());
}
return componentMap.get(key)!;
}