[ts] Type-check sources/Plugin.js with TypeScript

R=tvanderlippe@chromium.org

Bug: chromium:1011811
Change-Id: I4e9a40c31f66b09c0feabd6c326d1c5c46ce8139
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2404647
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
This commit is contained in:
Simon Zünd
2020-09-11 11:16:54 +00:00
committed by Commit Bot
parent 0b1f73521c
commit 3103138c4f
+2 -5
View File
@@ -2,9 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @ts-nocheck
// TODO(crbug.com/1011811): Enable TypeScript compiler checks
import * as UI from '../ui/ui.js'; // eslint-disable-line no-unused-vars
import * as Workspace from '../workspace/workspace.js'; // eslint-disable-line no-unused-vars
@@ -43,7 +40,7 @@ export class Plugin {
/**
* @param {!UI.ContextMenu.ContextMenu} contextMenu
* @param {number} lineNumber
* @return {!Promise}
* @return {!Promise<void>}
*/
populateLineGutterContextMenu(contextMenu, lineNumber) {
return Promise.resolve();
@@ -53,7 +50,7 @@ export class Plugin {
* @param {!UI.ContextMenu.ContextMenu} contextMenu
* @param {number} lineNumber
* @param {number} columnNumber
* @return {!Promise}
* @return {!Promise<void>}
*/
populateTextAreaContextMenu(contextMenu, lineNumber, columnNumber) {
return Promise.resolve();