Skip to content

Commit 9352c54

Browse files
committed
feat: improved the "mixing-events-handling-syntax" warning description
1 parent 2235a6a commit 9352c54

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/svelte/src/compiler/phases/types.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import type {
22
Binding,
33
Css,
44
Fragment,
5+
OnDirective,
56
RegularElement,
67
SlotElement,
78
SvelteElement,
89
SvelteNode,
910
SvelteOptions,
1011
Warning
1112
} from '#compiler';
12-
import type { BaseNode, Identifier, LabeledStatement, Program } from 'estree';
13+
import type { Identifier, LabeledStatement, Program } from 'estree';
1314
import type { Scope, ScopeRoot } from './scope.js';
1415

1516
export interface Js {
@@ -57,7 +58,7 @@ export interface ComponentAnalysis extends Analysis {
5758
uses_slots: boolean;
5859
uses_component_bindings: boolean;
5960
uses_render_tags: boolean;
60-
event_directive_node: BaseNode | null;
61+
event_directive_node: OnDirective | null;
6162
uses_event_attributes: boolean;
6263
custom_element: boolean | SvelteOptions['customElement'];
6364
/** If `true`, should append styles through JavaScript */

0 commit comments

Comments
 (0)