UNPKG

370 BTypeScriptView Raw
1import type { SiLookupTypeId, SiVariant } from '../interfaces/index.js';
2import type { PortableRegistry } from '../metadata/index.js';
3interface TypeHolder {
4 type: SiLookupTypeId;
5}
6export declare function lazyVariants<T>(lookup: PortableRegistry, { type }: TypeHolder, getName: (v: SiVariant) => string, creator: (v: SiVariant) => T): Record<string, T>;
7export {};