aboutsummaryrefslogtreecommitdiff
path: root/node_modules/resolve-dependencies/lib/node-loader.d.ts
blob: 81663d34268ecdb63447a4795e9a93af815e4fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { File, JsLoaderOptions } from './file';
interface Resolver {
    resolve: (context: any, path: string, request: string, resolveContext: any, callback: any) => void;
}
export declare type Resolved = {
    absPath: string;
    pkgPath: string;
    pkg: any;
    warning: string;
};
export declare function resolveSync(from: string, request: string, resolver?: Resolver): Resolved;
export declare function load(workingDirectory: string, request: string, options?: Partial<JsLoaderOptions>): File | {
    warning: string;
};
export {};