lincd
Version:
LINCD is a JavaScript library for building user interfaces with linked data (also known as 'structured data', or RDF)
22 lines (21 loc) • 790 B
TypeScript
import { Shape } from '../shapes/Shape.js';
import { AddId, NodeDescriptionValue, UpdatePartial } from './QueryFactory.js';
import { NodeShape } from '../shapes/SHACL.js';
import { MutationQueryFactory } from './MutationQuery.js';
export type UpdateQuery<ResponseType = null> = {
type: 'update';
id: string;
shape: NodeShape;
updates: NodeDescriptionValue;
};
export declare class UpdateQueryFactory<ShapeType extends Shape, U extends UpdatePartial<ShapeType>> extends MutationQueryFactory {
shapeClass: typeof Shape;
readonly id: string;
readonly fields: NodeDescriptionValue;
constructor(shapeClass: typeof Shape, id: string | {
id: string;
} | {
uri: string;
}, updateObjectOrFn: U);
getQueryObject(): UpdateQuery<AddId<U>>;
}