@data-client/endpoint
Version:
Declarative Network Interface Definitions
17 lines (16 loc) • 809 B
TypeScript
import PolymorphicSchema from './Polymorphic.js';
import { GetIndex, GetEntity, Visit } from '../interface.js';
/**
* Represents polymorphic values.
* @see https://dataclient.io/rest/api/Union
*/
export default class UnionSchema extends PolymorphicSchema {
constructor(definition: any, schemaAttribute: any);
normalize(input: any, parent: any, key: any, args: any[], visit: Visit, addEntity: any, getEntity: any, checkLoop: any): any;
denormalize(input: {}, args: readonly any[], unvisit: (schema: any, input: any) => any): any;
queryKey(args: any, queryKey: (schema: any, args: any, getEntity: GetEntity, getIndex: GetIndex) => any, getEntity: GetEntity, getIndex: GetIndex): {
id: any;
schema: any;
} | undefined;
}
//# sourceMappingURL=Union.d.ts.map