UNPKG

@data-client/endpoint

Version:

Declarative Network Interface Definitions

6 lines (5 loc) 315 B
/** Attempts to infer reasonable input type to construct an Entity */ export type EntityFields<U> = { readonly [K in keyof U as U[K] extends (...args: any) => any ? never : K]?: U[K] extends number ? U[K] | string : U[K] extends string ? U[K] | number : U[K]; }; //# sourceMappingURL=EntityFields.d.ts.map