Skip to content

Commit 30a57c1

Browse files
committed
fixed types
1 parent 9ec3965 commit 30a57c1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lifecycle.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ export class Lifecycle {
7777
this.#emit(v);
7878
}
7979
#emit(event: keyof EventMap, name?: string): void {
80-
// @ts-expect-error idk
8180
this.#emitter.emit(event, name);
8281
}
8382
/**
@@ -94,7 +93,9 @@ export class Lifecycle {
9493
* ```
9594
*/
9695
all(cb: (event: keyof EventMap, name: string) => unknown): void {
97-
[...statuses, ...componentEvents].forEach((event) => this.#emitter.on(event, (name) => cb(event, name)));
96+
[...statuses, ...componentEvents].forEach((event) =>
97+
this.#emitter.on(event, (name: string) => cb(event, name))
98+
);
9899
}
99100
constructor(opt: Options = defaultOptions) {
100101
const { healthCheckIntervalMs } = { ...defaultOptions, ...opt };

0 commit comments

Comments
 (0)