Skip to content

Commit 249f54c

Browse files
committed
fix(core): fix component types
fixes #3997
1 parent 5c3087c commit 249f54c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/modules/component/component.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export interface ComponentContext {
4646
/** Render function */
4747
$render: ComponentRender;
4848
/** Attach event handler to component root DOM element */
49-
$on: (eventName, handler: () => void) => void;
49+
$on: (eventName: string, handler: () => void) => void;
5050
/** Attach event handler to component root DOM element that will be executed only once */
51-
$once: (eventName, handler: () => void) => void;
51+
$once: (eventName: string, handler: () => void) => void;
5252
/** Hook called right before component will be added to DOM */
5353
$onBeforeMount: (callback: () => void) => void;
5454
/** Hook called right after component has been added to DOM */

0 commit comments

Comments
 (0)