/* -------------------------------------------------------------------------------------------- * Copyright (c) 2018 TypeFox GmbH (http://www.typefox.io). All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. * ------------------------------------------------------------------------------------------ */ import type * as monaco from 'monaco-editor-core'; declare module 'monaco-editor-core' { module instantiation { export interface ServiceIdentifier { (...args: any[]): void; type: T; } export interface ServicesAccessor { get(id: ServiceIdentifier, isOptional?: typeof optional): T; } export interface IInstantiationService { } export function optional(serviceIdentifier: ServiceIdentifier): (target: Function, key: string, index: number) => void; } }