Skip to content

Commit

Permalink
chore: fix dts test
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 20, 2022
1 parent 0c7fd13 commit ae1fd53
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions test-dts/defineComponent.test-d.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1183,22 +1183,30 @@ export default {
})
}

import {
DefineComponent,
ComponentOptionsMixin,
EmitsOptions,
VNodeProps,
AllowedComponentProps,
ComponentCustomProps,
ExtractPropTypes
} from './index'

// code generated by tsc / vue-tsc, make sure this continues to work
// so we don't accidentally change the args order of DefineComponent
declare const MyButton: import('vue').DefineComponent<
declare const MyButton: DefineComponent<
{},
() => JSX.Element,
{},
{},
{},
import('vue').ComponentOptionsMixin,
import('vue').ComponentOptionsMixin,
import('vue').EmitsOptions,
ComponentOptionsMixin,
ComponentOptionsMixin,
EmitsOptions,
string,
import('vue').VNodeProps &
import('vue').AllowedComponentProps &
import('vue').ComponentCustomProps,
Readonly<import('vue').ExtractPropTypes<{}>>,
VNodeProps & AllowedComponentProps & ComponentCustomProps,
Readonly<ExtractPropTypes<{}>>,
{}
>

Expand Down

0 comments on commit ae1fd53

Please sign in to comment.