fix: build and test fixes for TS 2.1 (#13294)
This commit is contained in:
@ -68,7 +68,7 @@ export class ChromeDriverExtension extends WebDriverExtension {
|
||||
.then((_) => this._driver.logs('performance'))
|
||||
.then((entries) => {
|
||||
const events: PerfLogEvent[] = [];
|
||||
entries.forEach(entry => {
|
||||
entries.forEach((entry: any) => {
|
||||
const message = JSON.parse(entry['message'])['message'];
|
||||
if (message['method'] === 'Tracing.dataCollected') {
|
||||
events.push(message['params']);
|
||||
|
@ -40,7 +40,7 @@ export class IOsDriverExtension extends WebDriverExtension {
|
||||
.then((_) => this._driver.logs('performance'))
|
||||
.then((entries) => {
|
||||
const records: any[] = [];
|
||||
entries.forEach(entry => {
|
||||
entries.forEach((entry: any) => {
|
||||
const message = JSON.parse(entry['message'])['message'];
|
||||
if (message['method'] === 'Timeline.eventRecorded') {
|
||||
records.push(message['params']['record']);
|
||||
|
Reference in New Issue
Block a user