Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions packages/svelte/src/compiler/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,15 @@ export interface ModuleCompileOptions {
* Use this to filter out warnings. Return `true` to keep the warning, `false` to discard it.
*/
warningFilter?: (warning: Warning) => boolean;
/** Experimental options */
/**
* Experimental options
* @since 5.36
*/
experimental?: {
/** Allow `await` keyword in deriveds, template expressions, and the top level of components */
/**
* Allow `await` keyword in deriveds, template expressions, and the top level of components
* @since 5.36
*/
async?: boolean;
};
}
Expand Down
1 change: 1 addition & 0 deletions packages/svelte/src/internal/client/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ export async function tick() {
* Returns a promise that resolves once any state changes, and asynchronous work resulting from them,
* have resolved and the DOM has been updated
* @returns {Promise<void>}
* @since 5.36
*/
export function settled() {
return Batch.ensure().settled();
Expand Down
23 changes: 18 additions & 5 deletions packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,8 @@ declare module 'svelte' {
/**
* Returns a promise that resolves once any state changes, and asynchronous work resulting from them,
* have resolved and the DOM has been updated
* */
* @since 5.36
*/
export function settled(): Promise<void>;
/**
* When used inside a [`$derived`](https://svelte.dev/docs/svelte/$derived) or [`$effect`](https://svelte.dev/docs/svelte/$effect),
Expand Down Expand Up @@ -1116,9 +1117,15 @@ declare module 'svelte/compiler' {
* Use this to filter out warnings. Return `true` to keep the warning, `false` to discard it.
*/
warningFilter?: (warning: Warning) => boolean;
/** Experimental options */
/**
* Experimental options
* @since 5.36
*/
experimental?: {
/** Allow `await` keyword in deriveds, template expressions, and the top level of components */
/**
* Allow `await` keyword in deriveds, template expressions, and the top level of components
* @since 5.36
*/
async?: boolean;
};
}
Expand Down Expand Up @@ -3031,9 +3038,15 @@ declare module 'svelte/types/compiler/interfaces' {
* Use this to filter out warnings. Return `true` to keep the warning, `false` to discard it.
*/
warningFilter?: (warning: Warning_1) => boolean;
/** Experimental options */
/**
* Experimental options
* @since 5.36
*/
experimental?: {
/** Allow `await` keyword in deriveds, template expressions, and the top level of components */
/**
* Allow `await` keyword in deriveds, template expressions, and the top level of components
* @since 5.36
*/
async?: boolean;
};
}
Expand Down
Loading