UNPKG

1.12 kBTypeScriptView Raw
1import { TypeScript, TypeScriptOptions } from "./lib/plugin";
2
3declare var filter: {
4
5 /**
6 * Backwards compat filter behavior.
7 *
8 * Preserves the filter aspect of compiling only .ts
9 * and passing through all other files.
10 */
11 (inputNode: any, options?: TypeScriptOptions): any;
12
13 /**
14 * TypeScript Broccoli plugin class.
15 */
16 TypeScript: TypeScript;
17
18 findConfig(root: string): string;
19
20 /**
21 * Returns a Broccoli plugin instance that compiles
22 * the files in the tsconfig.
23 *
24 * It is rooted to the inputNode's outputPath, all
25 * files it imports must be resolvable from its input
26 * except for the default library file.
27 *
28 * Errors are logged and it will try to emit whatever
29 * it could successfully compile.
30 *
31 * It will only emit based on the root source files
32 * you give it, by default it will look for all .ts
33 * files, but if you specify a files or filesGlob
34 * it will these as entry points and only compile
35 * the files and files they reference from the input.
36 */
37 typescript(inputNode: any, options: TypeScriptOptions): TypeScript;
38}
39
40export = filter;