UNPKG

@shopify/polaris

Version:

Shopify’s admin product component library

12 lines (11 loc) 451 B
declare type IdGenerator = () => string; declare type IdGeneratorFactory = (prefix: string) => IdGenerator; export declare class UniqueIdFactory { private idGeneratorFactory; private idGenerators; constructor(idGeneratorFactory: IdGeneratorFactory); nextId(prefix: string): string; } export declare function globalIdGeneratorFactory(prefix?: string): () => string; export {}; //# sourceMappingURL=unique-id-factory.d.ts.map