From f6800744689e9b06dacbf873ff82cef9c445a32c Mon Sep 17 00:00:00 2001 From: Evan You Date: Sat, 26 Jun 2021 21:35:00 -0400 Subject: [PATCH] chore: fix dts test --- test-dts/index.d.ts | 7 ++----- test-dts/setupHelpers.test-d.ts | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/test-dts/index.d.ts b/test-dts/index.d.ts index 8376d5a8..3d8d288f 100644 --- a/test-dts/index.d.ts +++ b/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' diff --git a/test-dts/setupHelpers.test-d.ts b/test-dts/setupHelpers.test-d.ts index 2b5ab693..dd99b85d 100644 --- a/test-dts/setupHelpers.test-d.ts +++ b/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'