UNPKG

593 BTypeScriptView Raw
1/**
2 * Extendable Custom Types Interface
3 */
4declare type ExtendableTypes = 'Editor' | 'Element' | 'Text' | 'Selection' | 'Range' | 'Point' | 'InsertNodeOperation' | 'InsertTextOperation' | 'MergeNodeOperation' | 'MoveNodeOperation' | 'RemoveNodeOperation' | 'RemoveTextOperation' | 'SetNodeOperation' | 'SetSelectionOperation' | 'SplitNodeOperation';
5export interface CustomTypes {
6 [key: string]: unknown;
7}
8export declare 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