UNPKG

@prisma/sdk

Version:
10 lines (9 loc) 316 B
export interface Dictionary<T> { [key: string]: T; } /** * Reduce over the keys of the iterable. * @param collection Any array-like data structure. * @param iteratee Callback to be called on every element. */ export declare const keyBy: <T>(collection: T[], iteratee: (value: T) => string) => Dictionary<T>;