Skip to content

Commit

Permalink
revert invalidate change
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed Dec 6, 2023
1 parent d04483a commit 2df43bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .changeset/dirty-phones-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@sveltejs/kit': major
---

breaking: the types for `depends` and `invalidate` now require a `:` when passing a string
breaking: the type for `depends` now requires a `:` as part of the string
4 changes: 2 additions & 2 deletions packages/kit/src/runtime/app/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export const goto = /* @__PURE__ */ client_method('goto');
*
* invalidate((url) => url.pathname === '/path');
* ```
* @type {(url: `${string}:${string}` | URL | ((url: URL) => boolean)) => Promise<void>}
* @param {`${string}:${string}` | URL | ((url: URL) => boolean)} url The invalidated URL
* @type {(url: string | URL | ((url: URL) => boolean)) => Promise<void>}
* @param {string | URL | ((url: URL) => boolean)} url The invalidated URL
* @returns {Promise<void>}
*/
export const invalidate = /* @__PURE__ */ client_method('invalidate');
Expand Down

0 comments on commit 2df43bc

Please sign in to comment.