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