|
1 | 1 | declare module "colors";
|
2 |
| -declare module "*.json"; |
3 |
| -// Node built-in modules |
4 |
| -declare module "fs"; |
5 |
| -declare module "path"; |
6 |
| -// Node.js process and buffer globals |
7 |
| -declare namespace NodeJS { |
8 |
| - interface ProcessEnv { |
9 |
| - [key: string]: string | undefined; |
10 |
| - } |
11 |
| - interface Process { |
12 |
| - argv: string[]; |
13 |
| - env: ProcessEnv; |
14 |
| - exitCode?: number; |
15 |
| - /** |
16 |
| - * Exit the process with the given code. |
17 |
| - */ |
18 |
| - exit(code?: number): void; |
19 |
| - } |
20 |
| -} |
21 |
| -declare var process: NodeJS.Process; |
22 |
| - |
23 |
| -// Minimal Buffer API |
24 |
| -declare class Buffer { |
25 |
| - static alloc(size: number): Buffer; |
26 |
| - static concat(buffers: Buffer[]): Buffer; |
27 |
| - /** |
28 |
| - * Create a Buffer from an array of numbers or string. |
29 |
| - */ |
30 |
| - static from(data: number[] | string): Buffer; |
31 |
| - toString(encoding?: string): string; |
32 |
| - compare(other: Buffer): number; |
33 |
| - slice(start: number, end?: number): Buffer; |
34 |
| -} |
35 |
| -// Global require for CommonJS modules |
36 |
| -declare function require(moduleName: string): any; |
37 |
| - |
38 |
| -// Detailed child_process module types |
39 |
| -declare module "child_process" { |
40 |
| - export interface SpawnOptions { |
41 |
| - cwd?: string; |
42 |
| - env?: { [key: string]: string | undefined }; |
43 |
| - stdio?: any; |
44 |
| - } |
45 |
| - export function spawn( |
46 |
| - command: string, |
47 |
| - args?: readonly string[], |
48 |
| - options?: SpawnOptions, |
49 |
| - ): any; |
50 |
| - export function execSync(command: string, options?: any): Buffer; |
51 |
| -} |
52 |
| -declare module "events"; |
53 |
| -declare module "os"; |
54 |
| -declare module "util"; |
55 |
| -// Third-party modules without types |
56 |
| -declare module "fs-walk"; |
57 |
| -declare module "simple-plist"; |
58 |
| -declare module "plist"; |
59 |
| -declare module "macho-is-encrypted"; |
60 |
| -declare module "fatmacho"; |
61 |
| -declare module "macho"; |
62 |
| -declare module "uuid"; |
63 |
| -declare module "fs-extra"; |
64 |
| -declare module "which"; |
65 |
| -declare module "rimraf"; |
66 |
| -declare module "minimist"; |
67 |
| -// Ambient declarations for modules without TypeScript types |
68 | 2 | declare module "fs-walk";
|
69 | 3 | declare module "simple-plist";
|
70 | 4 | declare module "plist";
|
|
0 commit comments