Inline object map type

It was only being used in one spot, so just inline this type
This commit is contained in:
Matt Bierner 2021-02-01 14:51:06 -08:00
parent 8c3e6cd9ee
commit 6f1fbfdd93
2 changed files with 1 additions and 9 deletions

View file

@ -888,7 +888,7 @@ export default class TypeScriptServiceClient extends Disposable implements IType
}
private dispatchTelemetryEvent(telemetryData: Proto.TelemetryEventBody): void {
const properties: ObjectMap<string> = Object.create(null);
const properties: { [key: string]: string } = Object.create(null);
switch (telemetryData.telemetryEventName) {
case 'typingsInstalled':
const typingsInstalledPayload: Proto.TypingsInstalledTelemetryEventPayload = (telemetryData.payload as Proto.TypingsInstalledTelemetryEventPayload);

View file

@ -1,8 +0,0 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
interface ObjectMap<V> {
[key: string]: V;
}