UNPKG

582 BTypeScriptView Raw
1/**
2 * Extendable Custom Types Interface
3 */
4type ExtendableTypes = 'Editor' | 'Element' | 'Text' | 'Selection' | 'Range' | 'Point' | 'Operation' | 'InsertNodeOperation' | 'InsertTextOperation' | 'MergeNodeOperation' | 'MoveNodeOperation' | 'RemoveNodeOperation' | 'RemoveTextOperation' | 'SetNodeOperation' | 'SetSelectionOperation' | 'SplitNodeOperation';
5export interface CustomTypes {
6 [key: string]: unknown;
7}
8export type ExtendedType<K extends ExtendableTypes, B> = unknown extends CustomTypes[K] ? B : CustomTypes[K];
9export {};
10//# sourceMappingURL=custom-types.d.ts.map
\No newline at end of file