mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-02 18:11:04 +08:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user