Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
microsoft
GitHub Repository: microsoft/vscode
Path: blob/main/src/vs/platform/instantiation/common/descriptors.ts
3296 views
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
export class SyncDescriptor<T> {
7
8
readonly ctor: any;
9
readonly staticArguments: any[];
10
readonly supportsDelayedInstantiation: boolean;
11
12
constructor(ctor: new (...args: any[]) => T, staticArguments: any[] = [], supportsDelayedInstantiation: boolean = false) {
13
this.ctor = ctor;
14
this.staticArguments = staticArguments;
15
this.supportsDelayedInstantiation = supportsDelayedInstantiation;
16
}
17
}
18
19
export interface SyncDescriptor0<T> {
20
readonly ctor: new () => T;
21
}
22
23