t-comm
Version:
专业、稳定、纯粹的工具库
19 lines (18 loc) • 479 B
TypeScript
/**
* 提取 Vue 组件的 class
* @param {obj} params 参数
* @param {string} params.filePath 源文件地址
* @param {string} [params.targetFilePath] 输出文件地址
* @param {Regexp} [params.extractRegexp] 提取正则
*
* ```ts
* extractClass({
* filePath: 'xxx.vue',
* })
* ```
*/
export declare function extractClass({ filePath, targetFilePath, extractRegexp, }: {
filePath: string;
targetFilePath?: string;
extractRegexp?: RegExp;
}): void;