@wangeditor/code-highlight
Version:
wangEditor code-highlight module
18 lines (17 loc) • 328 B
TypeScript
/**
* @description 自定义 element
* @author wangfupeng
*/
declare type PureText = {
text: string;
};
export declare type PreElement = {
type: 'pre';
children: CodeElement[];
};
export declare type CodeElement = {
type: 'code';
language: string;
children: PureText[];
};
export {};