Skip to content

Commit

Permalink
update function description
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 25, 2022
1 parent 70bfa95 commit bc6579a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/types/ambient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ declare module '$app/navigation' {
opts?: { replaceState?: boolean; noscroll?: boolean; keepfocus?: boolean; state?: any }
): Promise<void>;
/**
* Causes any `load` functions belonging to the currently active page to re-run if they `fetch` the resource in question, or re-fetches data from a page endpoint if the invalidated resource is the page itself. If no argument is given, all resources will be invalidated. Returns a `Promise` that resolves when the page is subsequently updated.
* Causes any `load` functions belonging to the currently active page to re-run if they `fetch` the resource in question. If no argument is given, all resources will be invalidated. Returns a `Promise` that resolves when the page is subsequently updated.
* @param dependency The invalidated resource
*/
export function invalidate(dependency?: string | ((href: string) => boolean)): Promise<void>;
Expand Down

0 comments on commit bc6579a

Please sign in to comment.