소스 검색

chore: fix TS 4.7 error

Evan You 4 년 전
부모
커밋
dd39e7ef4c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/core/util/perf.ts

+ 4 - 0
src/core/util/perf.ts

@@ -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)