types: fix dts

This commit is contained in:
Evan You
2019-11-22 18:09:26 -05:00
parent 5c691aebfd
commit 24b4120c21
9 changed files with 33 additions and 27 deletions

View File

@@ -1,6 +1,5 @@
import { describe } from './util'
import { expectError, expectType } from 'tsd'
import { createComponent, PropType, ref } from './index'
import { describe, createComponent, PropType, ref } from './index'
describe('with object props', () => {
interface ExpectedProps {

View File

@@ -1,6 +1,13 @@
import { describe } from './util'
import { expectError } from 'tsd'
import { h, createComponent, ref, Fragment, Portal, Suspense } from './index'
import {
describe,
h,
createComponent,
ref,
Fragment,
Portal,
Suspense
} from './index'
describe('h inference w/ element', () => {
// key

2
test-dts/index.d.ts vendored
View File

@@ -5,3 +5,5 @@
// that would suppress the errors that should be caught.
export * from '@vue/runtime-dom'
export function describe(_name: string, _fn: () => void): void

View File

@@ -1,4 +0,0 @@
// aesthetic utility for making test-d.ts look more like actual tests
// and makes it easier to navigate test cases with folding
// it's a noop since test-d.ts files are not actually run.
export function describe(_name: string, _fn: () => void) {}