@aiszlab/relax 1.2.75 → 1.2.76

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,9 +1,6 @@
1
1
  import type { Voidable } from "../types";
2
- export type Node = {
3
- nodeType?: number;
4
- };
5
2
  /**
6
3
  * @description
7
4
  * is html element
8
5
  */
9
- export declare const isHTMLElement: (value: Voidable<Node>) => value is HTMLElement;
6
+ export declare const isHTMLElement: (value: Voidable<EventTarget>) => value is HTMLElement;
@@ -4,6 +4,7 @@
4
4
  */
5
5
  var isHTMLElement = function isHTMLElement(value) {
6
6
  if (!value) return false;
7
+ // @ts-ignore
7
8
  return value.nodeType === 1;
8
9
  };
9
10
 
@@ -1,7 +1,6 @@
1
1
  import type { Voidable } from "../types";
2
- import { type Node } from "./is-html-element";
3
2
  /**
4
3
  * @param value - The element being tested
5
4
  * @returns Returns true if x is an HTML input tag, false otherwise
6
5
  */
7
- export declare const isHTMLInputElement: (value: Voidable<Node>) => value is HTMLInputElement;
6
+ export declare const isHTMLInputElement: (value: Voidable<EventTarget>) => value is HTMLInputElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiszlab/relax",
3
- "version": "1.2.75",
3
+ "version": "1.2.76",
4
4
  "description": "react utils collection",
5
5
  "type": "module",
6
6
  "exports": {
@@ -45,7 +45,7 @@
45
45
  "jest-environment-jsdom": "^29.7.0",
46
46
  "react": "^18.3.1",
47
47
  "react-dom": "^18.3.1",
48
- "rollup": "^4.21.0",
48
+ "rollup": "^4.21.1",
49
49
  "typescript": "5.5.4"
50
50
  },
51
51
  "peerDependencies": {