vite-auto-deploy
Version:
用于配合 PHP 自动打包并上传打包后的文件到服务器指定目录的插件,此插件需要配合 php [项目地址](https://gitee.com/mxp131011/auto_deploy/)
14 lines (13 loc) • 433 B
TypeScript
/**
* 判断是否为函数
*/
export declare function isFunction(arg: unknown): arg is (...args: any[]) => any;
/**
* 判断是否为正则
*/
export declare function isRegExp(arg: unknown): arg is RegExp;
/**
* 读取指定文件夹下的所有文件,通过规则过滤,返回文件路径数组
* @param root - 需要读取的文件夹路径
*/
export declare function readAllFile(root: string, reg?: RegExp): string[];