UNPKG

@data-client/endpoint

Version:

Declarative Network Interface Definitions

27 lines (26 loc) 1.31 kB
import { GetIndex, GetEntity, Visit } from '../interface.js'; export declare const normalize: (schema: any, input: any, parent: any, key: any, args: any[], visit: Visit, addEntity: any, getEntity: any, checkLoop: any) => any; export declare function denormalize(schema: any, input: {}, args: readonly any[], unvisit: (schema: any, input: any) => any): any; export declare function objectQueryKey(schema: any, args: readonly any[], queryKey: (schema: any, args: any, getEntity: GetEntity, getIndex: GetIndex) => any, getEntity: GetEntity, getIndex: GetIndex): any; /** * Represents objects with statically known members * @see https://dataclient.io/rest/api/Object */ export default class ObjectSchema { protected schema: any; constructor(definition: Record<string, any>); define(definition: Record<string, any>): void; normalize(...args: readonly [ /*input*/ any, /*parent*/ any, /*key*/ any, /*args*/ any[], /*visit*/ any, /*addEntity*/ any, /*getEntity*/ any, /*checkLoop*/ any ]): any; denormalize(input: {}, args: readonly any[], unvisit: (schema: any, input: any) => any): any; queryKey(args: any, queryKey: any, getEntity: any, getIndex: any): any; } //# sourceMappingURL=Object.d.ts.map