Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Dec 12, 2024
1 parent c61cc94 commit 3f71653
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte/src/compiler/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function compileModule(source, options) {
*
* @overload
* @param {string} source
* @param {{ filename?: string; modern: true }} options
* @param {{ filename?: string; modern: true; loose?: boolean }} options
* @returns {AST.Root}
*/

Expand All @@ -88,7 +88,7 @@ export function compileModule(source, options) {
*
* @overload
* @param {string} source
* @param {{ filename?: string; modern?: false }} [options]
* @param {{ filename?: string; modern?: false; loose?: boolean }} [options]
* @returns {Record<string, any>}
*/

Expand Down
2 changes: 2 additions & 0 deletions packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ declare module 'svelte/compiler' {
export function parse(source: string, options: {
filename?: string;
modern: true;
loose?: boolean;
}): AST.Root;
/**
* The parse function parses a component, returning only its abstract syntax tree.
Expand All @@ -643,6 +644,7 @@ declare module 'svelte/compiler' {
export function parse(source: string, options?: {
filename?: string;
modern?: false;
loose?: boolean;
} | undefined): Record<string, any>;
/**
* @deprecated Replace this with `import { walk } from 'estree-walker'`
Expand Down

0 comments on commit 3f71653

Please sign in to comment.