File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ export function compileModule(source, options) {
76
76
*
77
77
* @overload
78
78
* @param {string } source
79
- * @param {{ filename?: string; modern: true } } options
79
+ * @param {{ filename?: string; modern: true; loose?: boolean } } options
80
80
* @returns {AST.Root }
81
81
*/
82
82
@@ -88,7 +88,7 @@ export function compileModule(source, options) {
88
88
*
89
89
* @overload
90
90
* @param {string } source
91
- * @param {{ filename?: string; modern?: false } } [options]
91
+ * @param {{ filename?: string; modern?: false; loose?: boolean } } [options]
92
92
* @returns {Record<string, any> }
93
93
*/
94
94
Original file line number Diff line number Diff line change @@ -632,6 +632,7 @@ declare module 'svelte/compiler' {
632
632
export function parse ( source : string , options : {
633
633
filename ?: string ;
634
634
modern : true ;
635
+ loose ?: boolean ;
635
636
} ) : AST . Root ;
636
637
/**
637
638
* The parse function parses a component, returning only its abstract syntax tree.
@@ -643,6 +644,7 @@ declare module 'svelte/compiler' {
643
644
export function parse ( source : string , options ?: {
644
645
filename ?: string ;
645
646
modern ?: false ;
647
+ loose ?: boolean ;
646
648
} | undefined ) : Record < string , any > ;
647
649
/**
648
650
* @deprecated Replace this with `import { walk } from 'estree-walker'`
You can’t perform that action at this time.
0 commit comments