2 Star 13 Fork 1

KwooShung / Files

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.ts 782 Bytes
一键复制 编辑 原始数据 按行查看 历史
import FileHound from 'filehound';
/**
* FileHound 包装器,用于创建一个新的 FileHound 实例 (FileHound wrapper, used to create a new FileHound instance)
* @apilink https://nspragg.github.io/filehound/
* @param {FileHound.FileHound[]} instances FileHound 实例,当传入此参数时,将会调用 FileHound.any() 方法,将多个实例合并为一个实例 (FileHound instance, when this parameter is passed in, the FileHound.any() method will be called to merge multiple instances into one instance)
* @returns {FileHound.FileHound[]} FileHound 实例 (FileHound instance)
*/
const Hound = (...instances: FileHound.FileHound[]): FileHound.FileHound[] => (instances.length > 0 ? FileHound['any'](...instances) : [FileHound.create()]);
export default Hound;
1
https://gitee.com/kwooshung/Files.git
git@gitee.com:kwooshung/Files.git
kwooshung
Files
Files
main

搜索帮助