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 7f47f86 commit 528ff39Copy full SHA for 528ff39
packages/svelte/src/compiler/phases/3-transform/client/visitors/OnDirective.js
@@ -3,14 +3,14 @@
3
import * as b from '#compiler/builders';
4
import { build_event, build_event_handler } from './shared/events.js';
5
6
-const modifiers = [
+const modifiers = /** @type {const} */ ([
7
'stopPropagation',
8
'stopImmediatePropagation',
9
'preventDefault',
10
'self',
11
'trusted',
12
'once'
13
-];
+]);
14
15
/**
16
* @param {AST.OnDirective} node
0 commit comments