vite-uni-dev-tool
Version:
vite-uni-dev-tool, debug, uni-app, 一处编写,到处调试
27 lines • 765 B
TypeScript
type Word = {
/** 字符 */
word: string;
/** css 样式 */
class: string;
/** 分类
* - space: 空格
* - bracket: 括号
* - quotation: 引号
* - string: 字符串
* - function: 函数
* - attribute: 属性
* - operator: 操作符
* - symbol: 符号
* - keyword: 关键字
* - other: 其他
*/
type: 'space' | 'bracket' | 'quotation' | 'string' | 'function' | 'attribute' | 'operator' | 'symbol' | 'keyword' | 'other';
};
export type LineInfo = {
type: 'empty' | 'tag' | 'script' | 'style' | 'note';
class: string;
words: Word[];
};
export declare function parseCode(code: string): LineInfo[];
export {};
//# sourceMappingURL=parseCode.d.ts.map