From d25e11bee6ca5ca523884da132d18e1400e077b9 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 24 Aug 2021 14:41:48 +0200 Subject: Initial commit --- node_modules/resolve-dependencies/lib/file.d.ts | 39 +++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 node_modules/resolve-dependencies/lib/file.d.ts (limited to 'node_modules/resolve-dependencies/lib/file.d.ts') diff --git a/node_modules/resolve-dependencies/lib/file.d.ts b/node_modules/resolve-dependencies/lib/file.d.ts new file mode 100644 index 0000000..86db9a6 --- /dev/null +++ b/node_modules/resolve-dependencies/lib/file.d.ts @@ -0,0 +1,39 @@ +export declare function isScript(code: string): boolean; +export declare function hasModuleGlobs(file: Pick): boolean; +export declare function extraGlobs(file: Pick): string[]; +export declare function nodeModuleGlobs(file: Pick, useDefault?: boolean): string[]; +export declare type JsLoaderOptions = { + loadContent: boolean; + isEntry: boolean; + type: 'module' | 'commonjs'; + context?: { + moduleRoot: string; + package: any; + expanded?: boolean; + globs?: string[]; + }; + expand: 'all' | 'variable' | 'none'; +}; +export declare type FileMap = { + [key: string]: File | null; +}; +export declare type Files = { + [key: string]: File; +}; +export interface File { + deps: FileMap; + belongsTo?: File; + realSize?: number; + realPath?: string; + size: number; + absPath: string; + moduleType: 'module' | 'commonjs'; + contents: string | null; + contextExpanded?: boolean; + variableImports?: boolean; + moduleRoot?: string; + package?: any; +} +export declare function isNodeModule(request: string): boolean; +export declare function ensureDottedRelative(from: string, to: string): string; +export declare function createFile(absPath: string): File; -- cgit