Skip to content

Commit

Permalink
fix: adjust snippet helper type to new snippet API
Browse files Browse the repository at this point in the history
The `Snippet` type definition has changed. It's an array of arguments now, so we need to adjust our helper
#2293
  • Loading branch information
dummdidumm committed Feb 27, 2024
1 parent 0b1cb06 commit 8976bbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte2tsx/svelte-shims-v4.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ declare function __sveltets_2_cssProp(prop: Record<string, any>): {};
// @ts-ignore Svelte v3/v4 don't have this
declare function __sveltets_2_ensureSnippet(val: ReturnType<import('svelte').Snippet>): any;
// @ts-ignore Svelte v3/v4 don't have this
declare function __sveltets_2_snippet(): import('svelte').Snippet<void>;
declare function __sveltets_2_snippet<T>(t: T): import('svelte').Snippet<T>;
declare function __sveltets_2_snippet(): import('svelte').Snippet;
declare function __sveltets_2_snippet<T>(t: T): import('svelte').Snippet<[T]>;

/** @internal PRIVATE API, DO NOT USE */
type __sveltets_2_SvelteAnimationReturnType = {
Expand Down

0 comments on commit 8976bbe

Please sign in to comment.