UNPKG

intern

Version:

Intern. A next-generation code testing stack for JavaScript.

23 lines (22 loc) 1.01 kB
/// <reference types="node" /> import { RawSourceMap } from 'source-map'; import { CancellablePromise } from '@theintern/common'; export declare function expandFiles(patterns?: string[] | string): string[]; export declare function getConfig(file?: string): CancellablePromise<{ config: any; file?: string; }>; export declare function getConfig(argv?: string[]): CancellablePromise<{ config: any; file?: string; }>; export declare function getConfig(file: string, argv?: string[]): CancellablePromise<{ config: any; file?: string; }>; export declare function loadText(path: string): CancellablePromise<string>; export declare function normalizePath(path: string): string; export declare function readSourceMap(sourceFile: string, code?: string): RawSourceMap | undefined; export declare function isErrnoException(value: any): value is NodeJS.ErrnoException; export declare function mkdirp(dir: string): void; export declare function transpileSource(filename: string, code: string): string;