UNPKG

sussudio

Version:

An unofficial VS Code Internal API

14 lines (13 loc) 797 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { ServiceIdentifier } from "./instantiation.mjs"; import { SyncDescriptor } from './descriptors'; export declare class ServiceCollection { private _entries; constructor(...entries: [ServiceIdentifier<any>, any][]); set<T>(id: ServiceIdentifier<T>, instanceOrDescriptor: T | SyncDescriptor<T>): T | SyncDescriptor<T>; has(id: ServiceIdentifier<any>): boolean; get<T>(id: ServiceIdentifier<T>): T | SyncDescriptor<T>; }