UNPKG

@furystack/rest

Version:
19 lines 409 B
/** * Endpoint model for getting a single entity */ export type GetEntityEndpoint<T, TPrimaryKey extends keyof T> = { query: { /** * The list of fields to select */ select?: Array<keyof T>; }; url: { /** * The entity's unique identifier */ id: T[TPrimaryKey]; }; result: T; }; //# sourceMappingURL=get-endpoint.d.ts.map