UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

19 lines (18 loc) 479 B
/** * 提取 Vue 组件的 event * @param {obj} params 参数 * @param {string} params.filePath 源文件地址 * @param {string} [params.targetFilePath] 输出文件地址 * @param {Regexp} [params.extractRegexp] 提取正则 * * ```ts * extractEvent({ * filePath: 'xxx.vue', * }) * ``` */ export declare function extractEvent({ filePath, targetFilePath, extractRegexp, }: { filePath: string; targetFilePath?: string; extractRegexp?: RegExp; }): void;