Skip to content

Commit

Permalink
fix: adjust $inspect.with type
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Jan 11, 2024
1 parent ba13c3d commit c7cb90c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-jobs-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: adjust `$inspect.with` type
2 changes: 1 addition & 1 deletion packages/svelte/src/main/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@ declare function $props<T>(): T;
*/
declare function $inspect<T extends any[]>(
...values: T
): { with: (type: 'init' | 'update', ...values: T) => void };
): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void };
2 changes: 1 addition & 1 deletion packages/svelte/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2565,6 +2565,6 @@ declare function $props<T>(): T;
*/
declare function $inspect<T extends any[]>(
...values: T
): { with: (type: 'init' | 'update', ...values: T) => void };
): { with: (fn: (type: 'init' | 'update', ...values: T) => void) => void };

//# sourceMappingURL=index.d.ts.map

1 comment on commit c7cb90c

@vercel
Copy link

@vercel vercel bot commented on c7cb90c Jan 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

svelte-5-preview – ./sites/svelte-5-preview

svelte-5-preview-svelte.vercel.app
svelte-5-preview.vercel.app
svelte-octane.vercel.app
svelte-5-preview-git-main-svelte.vercel.app

Please sign in to comment.