Skip to content

Commit fa6f8e2

Browse files
committed
style: remove event log
1 parent e2fa98c commit fa6f8e2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/helpers/eventGateway.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1+
import type { EventsKey } from "ol/events";
12
import type { defineEmits } from "vue";
23

34
export default function eventGateway(
45
emit: ReturnType<typeof defineEmits>,
5-
instance: { on: (event: any, ...args: any[]) => unknown },
6+
instance: {
7+
on: (event: string, ...args: unknown[]) => EventsKey;
8+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9+
} & any,
610
events: string[]
711
) {
8-
[...COMMON_EVENTS, ...events].forEach((event: string) => {
12+
[...COMMON_EVENTS, ...events].forEach((event) => {
913
instance.on(event, (...args: unknown[]) => {
10-
console.log(event, args);
1114
emit(event, ...args);
1215
});
1316
});

0 commit comments

Comments
 (0)