@thednp/shorty 2.0.0-alpha7 → 2.0.0-alpha8
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.
- package/README.md +3 -3
- package/dist/shorty.cjs.map +1 -1
- package/dist/shorty.d.ts +3 -3
- package/dist/shorty.js.map +1 -1
- package/dist/shorty.mjs.map +1 -1
- package/package.json +6 -9
- package/src/get/getDocumentBody.ts +1 -1
- package/src/get/getDocumentElement.ts +1 -1
- package/src/get/getDocumentHead.ts +1 -1
package/dist/shorty.d.ts
CHANGED
|
@@ -1052,21 +1052,21 @@ export declare const getDocument: (node?: Node | Document | Window) => Document;
|
|
|
1052
1052
|
* @param node the reference node
|
|
1053
1053
|
* @returns the parent `<body>` of the specified node
|
|
1054
1054
|
*/
|
|
1055
|
-
export declare const getDocumentBody: (node?: Node) => HTMLElement;
|
|
1055
|
+
export declare const getDocumentBody: (node?: Node | Document | Window) => HTMLElement;
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Returns the `document.documentElement` or the `<HTML>` element.
|
|
1058
1058
|
*
|
|
1059
1059
|
* @param node the reference node
|
|
1060
1060
|
* @returns the parent `<HTML>` of the node's parent document
|
|
1061
1061
|
*/
|
|
1062
|
-
export declare const getDocumentElement: (node?: Node) => HTMLElement;
|
|
1062
|
+
export declare const getDocumentElement: (node?: Node | Document | Window) => HTMLElement;
|
|
1063
1063
|
/**
|
|
1064
1064
|
* Returns the `document.head` or the `<head>` element.
|
|
1065
1065
|
*
|
|
1066
1066
|
* @param node the reference node
|
|
1067
1067
|
* @returns the `<head>` of the node's parent document
|
|
1068
1068
|
*/
|
|
1069
|
-
export declare const getDocumentHead: (node?: Node) => HTMLElement & HTMLHeadElement;
|
|
1069
|
+
export declare const getDocumentHead: (node?: Node | Document | Window) => HTMLElement & HTMLHeadElement;
|
|
1070
1070
|
/**
|
|
1071
1071
|
* Utility to get the computed `animationDuration`
|
|
1072
1072
|
* from `HTMLElement` in miliseconds.
|