Debian Codegraph @

node/@xterm/xterm/src/vs/typings/require.d.ts

raw
1 /*---------------------------------------------------------------------------------------------
2 * Copyright (c) Microsoft Corporation. All rights reserved.
3 * Licensed under the MIT License. See License.txt in the project root for license information.
4 *--------------------------------------------------------------------------------------------*/
5
6 declare class LoaderEvent {
7 readonly type: number;
8 readonly timestamp: number;
9 readonly detail: string;
10 }
11
12 declare const define: {
13 (moduleName: string, dependencies: string[], callback: (...args: any[]) => any): any;
14 (moduleName: string, dependencies: string[], definition: any): any;
15 (moduleName: string, callback: (...args: any[]) => any): any;
16 (moduleName: string, definition: any): any;
17 (dependencies: string[], callback: (...args: any[]) => any): any;
18 (dependencies: string[], definition: any): any;
19 };
20
21 interface NodeRequire {
22 /**
23 * @deprecated use `FileAccess.asFileUri()` for node.js contexts or `FileAccess.asBrowserUri` for browser contexts.
24 */
25 toUrl(path: string): string;
26
27 /**
28 * @deprecated MUST not be used anymore
29 *
30 * With the move from AMD to ESM we cannot use this anymore. There will be NO MORE node require like this.
31 */
32 __$__nodeRequire<T>(moduleName: string): T;
33
34 (dependencies: string[], callback: (...args: any[]) => any, errorback?: (err: any) => void): any;
35 config(data: any): any;
36 onError: Function;
37 getStats?(): ReadonlyArray<LoaderEvent>;
38 hasDependencyCycle?(): boolean;
39 define(amdModuleId: string, dependencies: string[], callback: (...args: any[]) => any): any;
40 }
41
42 declare var require: NodeRequire;