quill-delta-to-html
Version:
Converts Quill's delta ops to HTML
24 lines (19 loc) • 501 B
text/typescript
import { DataType } from './value-types';
class InsertDataQuill {
readonly type: DataType;
readonly value: string;
constructor(type: DataType, value: string) {
this.type = type;
this.value = value;
}
}
class InsertDataCustom {
readonly type: string;
readonly value: any;
constructor(type: string, value: any) {
this.type = type;
this.value = value;
}
}
type InsertData = InsertDataCustom | InsertDataQuill;
export { InsertData, InsertDataCustom, InsertDataQuill };