tsconfig-paths
Version:
Load node modules according to tsconfig paths, in run-time or via API.
18 lines (17 loc) • 571 B
TypeScript
export interface OneTest {
readonly name: string;
readonly only?: boolean;
readonly skip?: boolean;
readonly absoluteBaseUrl: string;
readonly paths: {
[key: string]: Array<string>;
};
readonly mainFields?: (string | string[])[];
readonly addMatchAll?: boolean;
readonly existingFiles: ReadonlyArray<string>;
readonly requestedModule: string;
readonly extensions: ReadonlyArray<string>;
readonly packageJson?: {};
readonly expectedPath: string | undefined;
}
export declare const tests: ReadonlyArray<OneTest>;