Skip to content

Commit e5a137d

Browse files
authored
fix: Use URL instead of SvelteURL for interface definitions (#78)
1 parent 5c58ba2 commit e5a137d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ClassValue, HTMLAnchorAttributes } from "svelte/elements";
2-
import type { SvelteURL } from "svelte/reactivity";
32

43
/**
54
* Defines the data type of all `hash` properties found in almost all of the library's components.
@@ -157,7 +156,7 @@ export interface Location {
157156
/**
158157
* Gets a reactive URL object with the current window's URL.
159158
*/
160-
readonly url: SvelteURL;
159+
readonly url: URL;
161160
/**
162161
* Gets the current hash path or paths, depending on how the library was initialized.
163162
*
@@ -445,9 +444,10 @@ export type InitOptions = RoutingOptions & {
445444
export interface HistoryApi extends History {
446445
/**
447446
* Reactive URL object that reflects the current location.
447+
*
448448
* Implementations should ensure this stays synchronized with navigation changes.
449449
*/
450-
readonly url: SvelteURL;
450+
readonly url: URL;
451451

452452
/**
453453
* Cleans up event listeners and resources used by the HistoryApi implementation.

0 commit comments

Comments
 (0)