Skip to content

Commit f331773

Browse files
committed
refactor: use vue's emit options type
1 parent fd96c63 commit f331773

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

Diff for: src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export {
1717
VueMixin,
1818
VueStatic,
1919
VueConstructor,
20-
EmitsOptions,
21-
ObjectEmitsOptions,
2220
PublicProps,
2321
} from './vue'
2422

Diff for: src/vue.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
proxyRefs,
1111
Prop,
1212
ComponentObjectPropsOptions,
13+
EmitsOptions,
1314
} from 'vue'
1415
import { VueWithProps } from './props'
1516

@@ -116,12 +117,6 @@ export interface ClassComponentHooks {
116117
serverPrefetch?(): Promise<unknown>
117118
}
118119

119-
export type ObjectEmitsOptions = Record<
120-
string,
121-
((...args: any[]) => any) | null
122-
>
123-
export type EmitsOptions = ObjectEmitsOptions | string[]
124-
125120
export type Vue<
126121
Props = unknown,
127122
Emits extends EmitsOptions = {},

0 commit comments

Comments
 (0)