]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix dts test
authorEvan You <yyx990803@gmail.com>
Sun, 27 Jun 2021 01:35:00 +0000 (21:35 -0400)
committerEvan You <yyx990803@gmail.com>
Sun, 27 Jun 2021 01:35:00 +0000 (21:35 -0400)
test-dts/index.d.ts
test-dts/setupHelpers.test-d.ts

index 8376d5a842a2fc73170e20cbc6275fbeaf61cf5c..3d8d288fa6d077879d5a97b9d73ff345e3acf32f 100644 (file)
@@ -1,8 +1,5 @@
-// This directory contains a number of d.ts assertions using tsd:
-// https://github.com/SamVerschueren/tsd
-// The tests checks type errors and will probably show up red in VSCode, and
-// it's intended. We cannot use directives like @ts-ignore or @ts-nocheck since
-// that would suppress the errors that should be caught.
+// This directory contains a number of d.ts assertions
+// use \@ts-expect-error where errors are expected.
 
 export * from '@vue/runtime-dom'
 
index 2b5ab693e560725e8e7b2383057158fc3ef75bb3..dd99b85d14841d510b1fb2021206dc88f4e51d26 100644 (file)
@@ -1,10 +1,10 @@
-import { withDefaults } from '../packages/runtime-core/src/apiSetupHelpers'
 import {
   expectType,
   defineProps,
   defineEmit,
   defineEmits,
   useContext,
+  withDefaults,
   Slots,
   describe
 } from './index'