This commit is contained in:
xiaojunnuo
2025-04-06 00:20:05 +08:00
parent 04acd08ad2
commit 61e322678b
6 changed files with 131 additions and 28 deletions
@@ -8,10 +8,10 @@ export type Registrable = {
deprecated?: string;
order?: number;
};
export type TargetGetter<T> = () => Promise<T>;
export type RegistryItem<T> = {
define: Registrable;
target: T;
target: T | TargetGetter<T>;
};
export type OnRegisterContext<T> = {