@data-client/endpoint
Version:
Declarative Network Interface Definitions
5 lines • 309 B
TypeScript
/** 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