chore: fix TS 4.7 error

This commit is contained in:
Evan You 2022-05-31 16:11:55 +08:00
parent ef297d94f9
commit dd39e7ef4c
1 changed files with 4 additions and 0 deletions

View File

@ -8,9 +8,13 @@ if (__DEV__) {
/* istanbul ignore if */ /* istanbul ignore if */
if ( if (
perf && perf &&
// @ts-ignore
perf.mark && perf.mark &&
// @ts-ignore
perf.measure && perf.measure &&
// @ts-ignore
perf.clearMarks && perf.clearMarks &&
// @ts-ignore
perf.clearMeasures perf.clearMeasures
) { ) {
mark = tag => perf.mark(tag) mark = tag => perf.mark(tag)