文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/@types/pify/index.d.ts
编辑文件内容
// Type definitions for pify 5.0 // Project: https://github.com/sindresorhus/pify // Definitions by: Sam Verschueren <https://github.com/samverschueren> // Michael Müller <https://github.com/mad-mike> // Christoph Müller <https://github.com/c7hm4r> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type InputFunction = (...args: any[]) => any; declare function pify(input: InputFunction, options?: pify.PifyOptions): (...args: any[]) => Promise<any>; declare function pify(input: object, options?: pify.PifyOptions): any; declare namespace pify { interface PifyOptions { multiArgs?: boolean | undefined; include?: Array<string | RegExp> | undefined; exclude?: Array<string | RegExp> | undefined; excludeMain?: boolean | undefined; errorFirst?: boolean | undefined; promiseModule?: PromiseModule | undefined; } interface PromiseModule { new (executor: (resolve: (value?: any) => void, reject: (reason?: any) => void) => void): any; } } export = pify;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件