We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3087c commit 249f54cCopy full SHA for 249f54c
src/core/modules/component/component.d.ts
@@ -46,9 +46,9 @@ export interface ComponentContext {
46
/** Render function */
47
$render: ComponentRender;
48
/** Attach event handler to component root DOM element */
49
- $on: (eventName, handler: () => void) => void;
+ $on: (eventName: string, handler: () => void) => void;
50
/** Attach event handler to component root DOM element that will be executed only once */
51
- $once: (eventName, handler: () => void) => void;
+ $once: (eventName: string, handler: () => void) => void;
52
/** Hook called right before component will be added to DOM */
53
$onBeforeMount: (callback: () => void) => void;
54
/** Hook called right after component has been added to DOM */
0 commit comments