Skip to content

Commit 125044d

Browse files
committed
fix types
1 parent b5b6160 commit 125044d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,8 @@ export type DeclarationKind =
283283
| 'var'
284284
| 'let'
285285
| 'const'
286+
| 'using'
287+
| 'await using'
286288
| 'function'
287289
| 'import'
288290
| 'param'

packages/svelte/src/compiler/utils/builders.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,8 @@ export function import_all(as, source) {
619619
return {
620620
type: 'ImportDeclaration',
621621
source: literal(source),
622-
specifiers: [import_namespace(as)]
622+
specifiers: [import_namespace(as)],
623+
attributes: []
623624
};
624625
}
625626

@@ -636,7 +637,8 @@ export function imports(parts, source) {
636637
type: 'ImportSpecifier',
637638
imported: id(p[0]),
638639
local: id(p[1])
639-
}))
640+
})),
641+
attributes: []
640642
};
641643
}
642644

0 commit comments

Comments
 (0)