@aiszlab/relax 1.2.54 → 1.2.55

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.
@@ -7,4 +7,4 @@
7
7
  * @example
8
8
  * exclude([1, 2, 3, 4, 5], [2, 4]) // [1, 3, 5]
9
9
  */
10
- export declare const exclude: <T>(value: T[], _excludeBy: Array<unknown>) => T[];
10
+ export declare const exclude: <T, E = unknown>(value: T[], _excludeBy: E[]) => Exclude<T, E>[];
@@ -9,6 +9,7 @@
9
9
  */
10
10
  var exclude = function exclude(value, _excludeBy) {
11
11
  var excludeBy = new Set(_excludeBy);
12
+ // @ts-ignore
12
13
  return value.filter(function (item) {
13
14
  return !excludeBy.has(item);
14
15
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiszlab/relax",
3
- "version": "1.2.54",
3
+ "version": "1.2.55",
4
4
  "description": "react utils collection",
5
5
  "type": "module",
6
6
  "exports": {