UNPKG

poplar-annotation

Version:

web-based annotation tool for natural language processing (NLP) needs, inspired by brat rapid annotation tool.

26 lines (25 loc) 982 B
import { IAction } from "./IAction"; import { Store } from "../Store/Store"; export declare namespace Connection { class CreateConnectionAction implements IAction { readonly categoryId: number; readonly fromId: number; readonly toId: number; constructor(categoryId: number, fromId: number, toId: number); apply(store: Store): void; } function Create(categoryId: number, fromId: number, toId: number): CreateConnectionAction; class DeleteConnectionAction implements IAction { id: number; constructor(id: number); apply(store: Store): void; } function Delete(id: number): DeleteConnectionAction; class UpdateConnectionAction implements IAction { connectionId: number; categoryId: number; constructor(connectionId: number, categoryId: number); apply(store: Store): void; } function Update(labelId: number, categoryId: number): UpdateConnectionAction; }