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

src/index.ts

Lines changed: 0 additions & 2 deletions
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

src/vue.ts

Lines changed: 1 addition & 6 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy