Skip to content

Commit 56f40ba

Browse files
committed
fix(type): add listeners to SetupContext
1 parent bb8f2fd commit 56f40ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/component/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface SetupContext {
4545
readonly slots: { [key: string]: (...args: any[]) => VNode[] };
4646
readonly parent: ComponentInstance | null;
4747
readonly root: ComponentInstance;
48+
readonly listeners: { [key: string]: Function };
4849

4950
emit(event: string, ...args: any[]): void;
5051
}

0 commit comments

Comments
 (0)