Skip to content

Commit 09aec03

Browse files
committed
fix: allow falsy values for render tags
#2319
1 parent 15a41f3 commit 09aec03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte2tsx/svelte-shims-v4.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ declare function __sveltets_2_nonNullable<T>(type: T): NonNullable<T>;
146146
declare function __sveltets_2_cssProp(prop: Record<string, any>): {};
147147

148148
// @ts-ignore Svelte v3/v4 don't have this
149-
declare function __sveltets_2_ensureSnippet(val: ReturnType<import('svelte').Snippet>): any;
149+
declare function __sveltets_2_ensureSnippet(val: ReturnType<import('svelte').Snippet> | undefined | null): any;
150150
// @ts-ignore Svelte v3/v4 don't have this
151151
declare function __sveltets_2_snippet(): import('svelte').Snippet;
152152
declare function __sveltets_2_snippet<T>(t: T): import('svelte').Snippet<[T]>;

0 commit comments

Comments
 (0)