types: improve emit type (#345)

This commit is contained in:
likui
2019-10-22 02:04:42 +08:00
committed by Evan You
parent 67eb29f63b
commit f85ba092ce
2 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ export const enum LifecycleHooks {
ERROR_CAPTURED = 'ec'
}
type Emit = ((event: string, ...args: unknown[]) => void)
export type Emit = ((event: string, ...args: unknown[]) => void)
export interface SetupContext {
attrs: Data