1
>
/*---------------------------------------------------------------------------------------------
descriptors.ts
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: unknown[];
10
>
readonly supportsDelayedInstantiation: boolean;
11
>
12
>
constructor(ctor: new (...args: any[]) => T, staticArguments: unknown[] = [], supportsDelayedInstantiation: boolean = false) {
13
this.ctor = ctor;
14
this.staticArguments = staticArguments;
15
this.supportsDelayedInstantiation = supportsDelayedInstantiation;
16
}
18
>
19
>
export interface SyncDescriptor0<T> {
20
>
readonly ctor: new () => T;
21
>
}