UNPKG

@furystack/rest

Version:
19 lines (18 loc) 319 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 }