mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-28 09:35:38 -05:00
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
declare const enum LoaderEventType {
|
|
LoaderAvailable = 1,
|
|
|
|
BeginLoadingScript = 10,
|
|
EndLoadingScriptOK = 11,
|
|
EndLoadingScriptError = 12,
|
|
|
|
BeginInvokeFactory = 21,
|
|
EndInvokeFactory = 22,
|
|
|
|
NodeBeginEvaluatingScript = 31,
|
|
NodeEndEvaluatingScript = 32,
|
|
|
|
NodeBeginNativeRequire = 33,
|
|
NodeEndNativeRequire = 34
|
|
}
|
|
|
|
declare class LoaderEvent {
|
|
readonly type: LoaderEventType;
|
|
readonly timestamp: number;
|
|
readonly detail: string;
|
|
}
|
|
|
|
declare var define: {
|
|
(moduleName: string, dependencies: string[], callback: (...args: any[]) => any): any;
|
|
(moduleName: string, dependencies: string[], definition: any): any;
|
|
(moduleName: string, callback: (...args: any[]) => any): any;
|
|
(moduleName: string, definition: any): any;
|
|
(dependencies: string[], callback: (...args: any[]) => any): any;
|
|
(dependencies: string[], definition: any): any;
|
|
};
|
|
|
|
interface NodeRequire {
|
|
toUrl(path: string): string;
|
|
(dependencies: string[], callback: (...args: any[]) => any, errorback?: (err: any) => void): any;
|
|
config(data: any): any;
|
|
onError: Function;
|
|
__$__nodeRequire<T>(moduleName: string): T;
|
|
getStats(): ReadonlyArray<LoaderEvent>
|
|
}
|