elegance-js 2.1.24 → 2.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyElement, ElementOptionsOrChild } from "../elements/element";
|
|
1
|
+
import { AnyElement, ElementOptionsOrChild, SpecialElementOption } from "../elements/element";
|
|
2
2
|
/**
|
|
3
3
|
* Create a custom anchor element that let's you hook into client-side navigation.
|
|
4
4
|
* If provided a URL that is non-local, it will default to normal navigation.
|
|
@@ -8,7 +8,7 @@ import { AnyElement, ElementOptionsOrChild } from "../elements/element";
|
|
|
8
8
|
*/
|
|
9
9
|
type ExtraOptions = {
|
|
10
10
|
/** Mandatory, where this Link should take the user to. */
|
|
11
|
-
href: string;
|
|
11
|
+
href: string | SpecialElementOption;
|
|
12
12
|
/** Set window.scrollTop to 0 whenever this link navigates. */
|
|
13
13
|
resetScrollOnNav?: boolean;
|
|
14
14
|
};
|