Skip to content

Commit

Permalink
typo: Router.d.ts Upate -> Update
Browse files Browse the repository at this point in the history
  • Loading branch information
iksflow committed May 19, 2023
1 parent 86c99fe commit 73b4e32
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ export type LinkActionOpts = {
}

/** Type for the update function of the link action */
export type LinkActionUpateFunc = ((opts?: LinkActionOpts) => void) |
export type LinkActionUpdateFunc = ((opts?: LinkActionOpts) => void) |
((hrefVar?: string) => void)

/** Type for backwards-compatible (typo: Upate) */
export type LinkActionUpateFunc = LinkActionUpdateFunc
/**
* Svelte Action that enables a link element (`<a>`) to use our history management.
*
Expand All @@ -132,8 +134,8 @@ export type LinkActionUpateFunc = ((opts?: LinkActionOpts) => void) |
* @param opts - Dictionary with options for the link
* @param hrefVar - A string to use in place of the link's href attribute. Using this allows for updating link's targets reactively. This is a shorthand for opts.href
*/
export function link(node: HTMLElement, opts?: LinkActionOpts): {update: LinkActionUpateFunc}
export function link(node: HTMLElement, hrefVar?: string): {update: LinkActionUpateFunc}
export function link(node: HTMLElement, opts?: LinkActionOpts): {update: LinkActionUpdateFunc}
export function link(node: HTMLElement, hrefVar?: string): {update: LinkActionUpdateFunc}

/** Full location from the hash: page and querystring */
interface Location {
Expand Down

0 comments on commit 73b4e32

Please sign in to comment.