Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Sep 1, 2022
1 parent 884d4fb commit 6657fc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/types/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ declare module '$app/navigation' {
* The `function` argument can be used define a custom predicate. It receives the full `URL` and causes `load` to rerun if `true` is returned.
* This can be useful if you want to invalidate based on a pattern instead of a exact match.
*
* ```js
* ```ts
* // Example: Match '/path' regardless of the query parameters
* invalidate((url) => url.pathname === '/path')`
* invalidate((url) => url.pathname === '/path');
* ```
* @param url The invalidated URL
*/
Expand Down

0 comments on commit 6657fc9

Please sign in to comment.