lincd
Version:
LINCD is a JavaScript library for building user interfaces with linked data (also known as 'structured data', or RDF)
19 lines (18 loc) • 834 B
TypeScript
import { Shape } from '../shapes/Shape.js';
import { NodeShape } from '../shapes/SHACL.js';
import { LinkedQuery } from './SelectQuery.js';
import { AddId, NodeDescriptionValue, UpdatePartial } from './QueryFactory.js';
import { MutationQueryFactory } from './MutationQuery.js';
export interface CreateQuery<ResponseType = null> extends LinkedQuery {
type: 'create';
shape: NodeShape;
description: NodeDescriptionValue;
}
export type CreateResponse<U> = AddId<U, true>;
export declare class CreateQueryFactory<ShapeType extends Shape, U extends UpdatePartial<ShapeType>> extends MutationQueryFactory {
shapeClass: typeof Shape;
readonly id: string;
readonly description: NodeDescriptionValue;
constructor(shapeClass: typeof Shape, updateObjectOrFn: U);
getQueryObject(): CreateQuery<AddId<U, true>>;
}