@data-client/endpoint
Version:
Declarative Network Interface Definitions
15 lines (14 loc) • 766 B
TypeScript
import ArraySchema from './Array.js';
import { GetEntity, Visit } from '../interface.js';
import { EntityInterface, EntityMap, SchemaFunction } from '../schema.js';
/**
* Retrieves all entities in cache
*
* @see https://dataclient.io/rest/api/All
*/
export default class AllSchema<S extends EntityMap | EntityInterface = EntityMap | EntityInterface> extends ArraySchema {
constructor(definition: S, schemaAttribute?: S extends EntityMap<infer T> ? keyof T | SchemaFunction<keyof S> : undefined);
normalize(input: any, parent: any, key: any, args: any[], visit: Visit, addEntity: any, getEntity: any, checkLoop: any): any;
queryKey(args: any, queryKey: any, getEntity: GetEntity, getIndex: any): any;
}
//# sourceMappingURL=All.d.ts.map