文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/@rollup/plugin-alias/types/index.d.ts
编辑文件内容
import type { Plugin, PluginHooks } from 'rollup'; type MapToFunction<T> = T extends Function ? T : never; export type ResolverFunction = MapToFunction<PluginHooks['resolveId']>; export interface ResolverObject { buildStart?: PluginHooks['buildStart']; resolveId: ResolverFunction; } export interface Alias { find: string | RegExp; replacement: string; customResolver?: ResolverFunction | ResolverObject | null; } export interface ResolvedAlias { find: string | RegExp; replacement: string; resolverFunction: ResolverFunction | null; } export interface RollupAliasOptions { /** * Instructs the plugin to use an alternative resolving algorithm, * rather than the Rollup's resolver. * @default null */ customResolver?: ResolverFunction | ResolverObject | null; /** * Specifies an `Object`, or an `Array` of `Object`, * which defines aliases used to replace values in `import` or `require` statements. * With either format, the order of the entries is important, * in that the first defined rules are applied first. */ entries?: readonly Alias[] | { [find: string]: string }; } /** * 🍣 A Rollup plugin for defining aliases when bundling packages. */ export default function alias(options?: RollupAliasOptions): Plugin;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件