UNPKG

@onn-software/ddl-to-gql

Version:

Convert a SQL DDL to a GraphQL implementation with all relations.

4 lines (3 loc) 287 B
export declare const associateBy: <K extends string | number, T>(array: T[], getKey: (entry: T) => K) => Record<K, T>; export declare const distinct: <T extends string | number>(arr: T[]) => T[]; export declare const distinctBy: <T>(arr: T[], by: (item: T) => (string | number)) => T[];