json-joy
Version:
Collection of libraries for building collaborative editing apps.
19 lines (18 loc) • 378 B
JavaScript
import { s } from '../../json-crdt-patch';
export class Extension {
id;
name;
Node;
Api;
schema;
constructor(id, name, Node, Api, schema) {
this.id = id;
this.name = name;
this.Node = Node;
this.Api = Api;
this.schema = schema;
}
new(...args) {
return s.ext(this.id, this.schema(...args));
}
}