文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/externality/dist/index.d.ts
编辑文件内容
import { ResolveOptions as ResolveOptions$1 } from 'enhanced-resolve'; import { Plugin } from 'rollup'; type ModuleType = "commonjs" | "module" | "unknown"; interface ResolveOptions extends Partial<ResolveOptions$1> { /** * Whether to resolve esm or cjs by default * @default 'commonjs' */ type?: ModuleType; } interface ResolvedId { id: string; path: string; type?: ModuleType; external?: boolean; } declare function resolveId(id: string, base?: string, options?: ResolveOptions): Promise<ResolvedId>; type Matcher<T = any> = RegExp | ((input: string, context?: T) => boolean); declare function getProtocol(id: string): string | null; declare function matches<T = any>(input: string, matchers: Matcher<T>[], context?: T): boolean; declare function toMatcher(pattern: string): RegExp; declare function toMatcher<T>(pattern: Matcher<T>): Matcher<T>; declare function getType(id: string, fallback?: ModuleType): ModuleType; interface ExternalsOptions { /** * Patterns that always will be excluded from externals */ inline?: Array<string | Matcher>; /** * Patterns that match if an id/module is external */ external?: Array<string | Matcher>; /** * Protocols that are allowed to be externalized. * Any other matched protocol will be inlined. * * Default: ['node', 'file', 'data'] */ externalProtocols?: Array<string>; /** * Extensions that are allowed to be externalized. * Any other matched extension will be inlined. * * Default: ['.js', '.mjs', '.cjs', '.node'] */ externalExtensions?: Array<string>; /** * Resolve options (passed directly to [`enhanced-resolve`](https://github.com/webpack/enhanced-resolve)) */ resolve?: Partial<ResolveOptions>; /** * Try to automatically detect and inline invalid node imports * matching file name (at first) and then loading code. */ detectInvalidNodeImports?: boolean; } declare const ExternalsDefaults: ExternalsOptions; declare function isExternal(id: string, importer: string, options?: ExternalsOptions): Promise<null | { id: string; external: true; }>; declare function rollupExternals(options: ExternalsOptions): Plugin; declare function webpackExternals(options: ExternalsOptions): any; export { ExternalsDefaults, ExternalsOptions, Matcher, ModuleType, ResolveOptions, ResolvedId, getProtocol, getType, isExternal, matches, resolveId, rollupExternals, toMatcher, webpackExternals };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件