generate-test-ids
Version:
Generate an object of unique test ids
5 lines (4 loc) • 297 B
TypeScript
declare type TestIdsObj = Record<string, string>;
export declare type Assoc = (prop: string, value: string, obj: TestIdsObj) => TestIdsObj;
export declare type Reduce = (reducer: (acc: TestIdsObj, val: string) => TestIdsObj, initialValue: TestIdsObj) => (list: string[]) => TestIdsObj;
export {};