@furystack/rest
Version:
Generic REST package
19 lines • 409 B
TypeScript
/**
* 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