Evan You пре 4 година
родитељ
комит
f680074468
2 измењених фајлова са 3 додато и 6 уклоњено
  1. 2 5
      test-dts/index.d.ts
  2. 1 1
      test-dts/setupHelpers.test-d.ts

+ 2 - 5
test-dts/index.d.ts

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

+ 1 - 1
test-dts/setupHelpers.test-d.ts

@@ -1,10 +1,10 @@
-import { withDefaults } from '../packages/runtime-core/src/apiSetupHelpers'
 import {
   expectType,
   defineProps,
   defineEmit,
   defineEmits,
   useContext,
+  withDefaults,
   Slots,
   describe
 } from './index'