From 946ff76af650fcd1c7a0d34afafb8f5058613bb8 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 21 Jun 2018 14:05:43 -0700 Subject: [PATCH] Fix jsdoc comment being on wrong type --- src/vs/base/common/objects.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/base/common/objects.ts b/src/vs/base/common/objects.ts index 31769c963f1..513ac6c9240 100644 --- a/src/vs/base/common/objects.ts +++ b/src/vs/base/common/objects.ts @@ -225,6 +225,7 @@ export function getOrDefault(obj: T, fn: (obj: T) => R, defaultValue: R = return typeof result === 'undefined' ? defaultValue : result; } +type obj = { [key: string]: any; }; /** * Returns an object that has keys for each value that is different in the base object. Keys * that do not exist in the target but in the base object are not considered. @@ -235,7 +236,6 @@ export function getOrDefault(obj: T, fn: (obj: T) => R, defaultValue: R = * @param base the object to diff against * @param obj the object to use for diffing */ -export type obj = { [key: string]: any; }; export function distinct(base: obj, target: obj): obj { const result = Object.create(null); -- GitLab