文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/local/lib/node_modules/npm/node_modules/map-age-cleaner/dist/index.d.ts
编辑文件内容
interface Entry { [key: string]: any; } interface MaxAgeEntry extends Entry { maxAge: number; } /** * Automatically cleanup the items in the provided `map`. The property of the expiration timestamp should be named `maxAge`. * * @param map - Map instance which should be cleaned up. */ export default function mapAgeCleaner<K = any, V extends MaxAgeEntry = MaxAgeEntry>(map: Map<K, V>): any; /** * Automatically cleanup the items in the provided `map`. * * @param map - Map instance which should be cleaned up. * @param property - Name of the property which olds the expiry timestamp. */ export default function mapAgeCleaner<K = any, V = Entry>(map: Map<K, V>, property: string): any; export {};
修改文件时间
将文件时间修改为当前时间的前一年
删除文件