UNPKG

altair-graphql-core

Version:

Several of the core logic for altair graphql client

19 lines 850 B
export type IDictionary<V = any> = Record<string, V>; export type TODO = any; export interface BaseDocument { id: string; created_at?: number; updated_at?: number; } export interface BaseOwnableDocument extends BaseDocument { ownerUid: string; } type TypedOmit<T, K extends keyof T> = Omit<T, K>; export type CreateDTO<T extends BaseDocument | BaseOwnableDocument> = T extends BaseOwnableDocument ? TypedOmit<T, keyof BaseOwnableDocument> : TypedOmit<T, keyof BaseDocument>; export type UpdateDTO<T extends BaseDocument | BaseOwnableDocument> = CreateDTO<T> & Pick<T, 'id'>; type Impossible<K extends keyof any> = { [P in K]: never; }; export type NoExtraProperties<T, U extends T = T> = U extends Array<infer V> ? NoExtraProperties<V>[] : U & Impossible<Exclude<keyof U, keyof T>>; export {}; //# sourceMappingURL=shared.d.ts.map