Remove custom-externs
We are migrating to typescript, so this is not needed anymore.
Change-Id: I16d6fb025792450a1c4f9f6c20b6dd979c379e1b
diff --git a/polygerrit-ui/app/types/custom-externs.ts b/polygerrit-ui/app/types/custom-externs.ts
deleted file mode 100644
index ab58a67..0000000
--- a/polygerrit-ui/app/types/custom-externs.ts
+++ /dev/null
@@ -1,62 +0,0 @@
-/**
- * @license
- * Copyright (C) 2019 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * For the purposes of template type checking, externs should be added for
- * anything set on the window object. Note that sub-properties of these
- * declared properties are considered something separate.
- *
- * This file is only for template type checking, not used in Gerrit code.
- */
-
-/* eslint-disable no-var */
-/* eslint-disable no-unused-vars */
-/** @externs */
-// @unused
-
-var Gerrit: any;
-var GrAnnotation;
-var GrAttributeHelper;
-var GrChangeActionsInterface;
-var GrChangeReplyInterface;
-var GrDiffBuilder;
-var GrDiffBuilderImage;
-var GrDiffBuilderSideBySide;
-var GrDiffBuilderUnified;
-var GrDiffGroup;
-var GrDiffLine;
-var GrDomHooks;
-var GrEditConstants;
-var GrEtagDecorator;
-var GrFileListConstants;
-var GrGapiAuth;
-var GrGerritAuth;
-var GrLinkTextParser;
-var GrPluginEndpoints;
-var GrPopupInterface;
-var GrReporting;
-var GrReviewerUpdatesParser;
-var GrCountStringFormatter;
-var GrThemeApi;
-var SiteBasedCache;
-var FetchPromisesCache;
-var GrRestApiHelper;
-var GrDisplayNameUtils;
-var GrReviewerSuggestionsProvider;
-var page;
-var util;
-var Polymer: any;
diff --git a/polygerrit-ui/app/types/globals.ts b/polygerrit-ui/app/types/globals.ts
index 3a2303c..09f22c0 100644
--- a/polygerrit-ui/app/types/globals.ts
+++ b/polygerrit-ui/app/types/globals.ts
@@ -34,6 +34,14 @@
options: {callback: (text: string, href?: string) => void}
): void;
ASSETS_PATH?: string;
+ // TODO(TS): define gerrit type
+ Gerrit?: unknown;
+ // TODO(TS): define polymer type
+ Polymer?: unknown;
+ // TODO(TS): remove page when better workaround is found
+ // page shouldn't be exposed in window and it shouldn't be used
+ // it's defined because of limitations from typescript, which don't import .mjs
+ page?: unknown;
DEFAULT_DETAIL_HEXES?: {
diffPage?: string;