mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-10 21:54:47 +08:00
Enable TypeScript for TimelineModelFilter.js
Bug: 1011811 Change-Id: Icca8989b707c076ccd9f08cd5b855a19232d6e43 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2479122 Auto-Submit: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Simon Zünd <szuend@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 SDK from '../sdk/sdk.js'; // eslint-disable-line no-unused-vars
|
||||
|
||||
import {RecordType, TimelineModelImpl} from './TimelineModel.js';
|
||||
@@ -38,6 +35,7 @@ export class TimelineVisibleEventsFilter extends TimelineModelFilter {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {!SDK.TracingModel.Event} event
|
||||
* @return {!RecordType}
|
||||
*/
|
||||
static _eventType(event) {
|
||||
@@ -50,7 +48,7 @@ export class TimelineVisibleEventsFilter extends TimelineModelFilter {
|
||||
if (event.hasCategory(TimelineModelImpl.Category.LatencyInfo)) {
|
||||
return RecordType.LatencyInfo;
|
||||
}
|
||||
return /** @type !RecordType */ (event.name);
|
||||
return /** @type {!RecordType} */ (event.name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user