types: fix dts
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
2
test-dts/index.d.ts
vendored
@@ -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
|
||||
|
||||
@@ -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) {}
|
||||
Reference in New Issue
Block a user