EntityClient
type EntityClient<TEntity> = TEntity extends { data: infer TData; searchInput: infer TSearch;} ? { get: (id) => Promise<TData | undefined>; search: (input, options?) => Promise<SearchResult<TData>>;} : never;Defined in: client/src/types/types.ts:50
An entity handle exposing the two read operations the server supports:
paginated search (keyed by the entity’s searchInput) and get by id.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
TEntity |