@aiszlab/relax 2.0.6-beta.0 → 2.0.6-beta.1

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.
@@ -0,0 +1,4 @@
1
+ /**
2
+ * item type of array
3
+ */
4
+ export type ArrayAt<T> = T extends Array<infer I> ? I : never;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * deep partial
3
+ */
4
+ export type DeepPartial<T> = {
5
+ [P in keyof T]?: DeepPartial<T[P]>;
6
+ };
@@ -10,3 +10,5 @@ export type { State, StateGetter } from "./state";
10
10
  export type { Arrayable } from "./arrayable";
11
11
  export type { RequiredTo } from "./required-to";
12
12
  export type { AnyFunction } from "./any-function";
13
+ export type { DeepPartial } from "./deep-partial";
14
+ export type { ArrayAt } from "./array-at";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiszlab/relax",
3
- "version": "2.0.6-beta.0",
3
+ "version": "2.0.6-beta.1",
4
4
  "description": "react utils collection",
5
5
  "exports": {
6
6
  ".": {
@@ -22,7 +22,8 @@
22
22
  "scripts": {
23
23
  "dev": "rollup -c -w",
24
24
  "build": "rollup -c",
25
- "clean:build": "rm -rf dist",
25
+ "clean:build": "z rm dist",
26
+ "prepublishOnly": "npm run clean:build && npm run build",
26
27
  "test": "jest",
27
28
  "test:coverage": "jest --coverage"
28
29
  },
@@ -43,14 +44,14 @@
43
44
  "@rollup/plugin-typescript": "^12.1.2",
44
45
  "@testing-library/react": "^16.3.0",
45
46
  "@types/babel__core": "^7.20.5",
46
- "@types/react": "^19.1.3",
47
- "@types/react-dom": "^19.1.3",
47
+ "@types/react": "^19.1.4",
48
+ "@types/react-dom": "^19.1.5",
48
49
  "@types/react-is": "^19.0.0",
49
50
  "jest": "^29.7.0",
50
51
  "jest-environment-jsdom": "^29.7.0",
51
52
  "react": "^19.1.0",
52
53
  "react-dom": "^19.1.0",
53
- "rollup": "^4.40.2",
54
+ "rollup": "^4.41.0",
54
55
  "typescript": "5.8.3"
55
56
  },
56
57
  "peerDependencies": {