Path: blob/main/src/vs/platform/instantiation/common/descriptors.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45export class SyncDescriptor<T> {67readonly ctor: any;8readonly staticArguments: any[];9readonly supportsDelayedInstantiation: boolean;1011constructor(ctor: new (...args: any[]) => T, staticArguments: any[] = [], supportsDelayedInstantiation: boolean = false) {12this.ctor = ctor;13this.staticArguments = staticArguments;14this.supportsDelayedInstantiation = supportsDelayedInstantiation;15}16}1718export interface SyncDescriptor0<T> {19readonly ctor: new () => T;20}212223