Skip to content

Commit 2df43bc

Browse files
committed
revert invalidate change
1 parent d04483a commit 2df43bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.changeset/dirty-phones-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'@sveltejs/kit': major
33
---
44

5-
breaking: the types for `depends` and `invalidate` now require a `:` when passing a string
5+
breaking: the type for `depends` now requires a `:` as part of the string

packages/kit/src/runtime/app/navigation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export const goto = /* @__PURE__ */ client_method('goto');
4444
*
4545
* invalidate((url) => url.pathname === '/path');
4646
* ```
47-
* @type {(url: `${string}:${string}` | URL | ((url: URL) => boolean)) => Promise<void>}
48-
* @param {`${string}:${string}` | URL | ((url: URL) => boolean)} url The invalidated URL
47+
* @type {(url: string | URL | ((url: URL) => boolean)) => Promise<void>}
48+
* @param {string | URL | ((url: URL) => boolean)} url The invalidated URL
4949
* @returns {Promise<void>}
5050
*/
5151
export const invalidate = /* @__PURE__ */ client_method('invalidate');

0 commit comments

Comments
 (0)