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 */
if (
perf &&
// @ts-ignore
perf.mark &&
// @ts-ignore
perf.measure &&
// @ts-ignore
perf.clearMarks &&
// @ts-ignore
perf.clearMeasures
) {
mark = tag => perf.mark(tag)