Skip to content

Commit 3593ca7

Browse files
committed
refactor: remove useless params in emits handling
1 parent 2deb954 commit 3593ca7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/emit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ export function emitted<T = unknown>(
2929

3030
export const attachEmitListener = () => {
3131
// use devtools to capture this "emit"
32-
setDevtoolsHook(createDevTools(events), {})
32+
setDevtoolsHook(createDevTools(), {})
3333
}
3434

3535
// devtools hook only catches Vue component custom events
36-
function createDevTools(events: Events): any {
36+
function createDevTools(): any {
3737
return {
3838
emit(eventType, ...payload) {
3939
if (eventType !== DevtoolsHooks.COMPONENT_EMIT) return

0 commit comments

Comments
 (0)