Skip to content

Commit 3f71653

Browse files
committed
types
1 parent c61cc94 commit 3f71653

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/svelte/src/compiler/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function compileModule(source, options) {
7676
*
7777
* @overload
7878
* @param {string} source
79-
* @param {{ filename?: string; modern: true }} options
79+
* @param {{ filename?: string; modern: true; loose?: boolean }} options
8080
* @returns {AST.Root}
8181
*/
8282

@@ -88,7 +88,7 @@ export function compileModule(source, options) {
8888
*
8989
* @overload
9090
* @param {string} source
91-
* @param {{ filename?: string; modern?: false }} [options]
91+
* @param {{ filename?: string; modern?: false; loose?: boolean }} [options]
9292
* @returns {Record<string, any>}
9393
*/
9494

packages/svelte/types/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,7 @@ declare module 'svelte/compiler' {
632632
export function parse(source: string, options: {
633633
filename?: string;
634634
modern: true;
635+
loose?: boolean;
635636
}): AST.Root;
636637
/**
637638
* The parse function parses a component, returning only its abstract syntax tree.
@@ -643,6 +644,7 @@ declare module 'svelte/compiler' {
643644
export function parse(source: string, options?: {
644645
filename?: string;
645646
modern?: false;
647+
loose?: boolean;
646648
} | undefined): Record<string, any>;
647649
/**
648650
* @deprecated Replace this with `import { walk } from 'estree-walker'`

0 commit comments

Comments
 (0)