@thisisagile/easy-react 15.28.0 → 15.28.2
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/dist/utils/Hooks.d.ts +2 -2
- package/package.json +4 -4
package/dist/utils/Hooks.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { List, Optional, PageList, PageOptions, Validatable } from '@thisisagile
|
|
|
2
2
|
export declare const useToggle: (initialState?: boolean) => [boolean, () => void];
|
|
3
3
|
export declare const useA: <E extends Validatable>(item?: Partial<E>) => [E, (e: E) => E];
|
|
4
4
|
export declare const useAn: <E extends Validatable>(item?: Partial<E>) => [E, (e: E) => E];
|
|
5
|
-
export declare const useOptional: <E>(item?: Partial<E>
|
|
5
|
+
export declare const useOptional: <E>(item?: Partial<E>) => [E, (e: Optional<E>) => Optional<E>, () => Optional<E>];
|
|
6
6
|
export declare const useEntity: <E extends Validatable>(item?: Partial<E>) => [E, (e: E) => E];
|
|
7
7
|
export declare const useList: <E>(...items: E[]) => [List<E>, (e: List<E>) => List<E>];
|
|
8
8
|
export declare const usePageList: <E>(...items: E[]) => [PageList<E>, (e: PageList<E>) => PageList<E>];
|
|
9
9
|
export declare const usePaging: <E>(f: (options?: PageOptions) => Promise<PageList<E>>, options?: PageOptions) => [PageList<E>, (options?: PageOptions) => Promise<PageList<E>>, boolean, number, number];
|
|
10
|
-
export declare const useGet: <E>(f: () => Promise<E>, initial?: Partial<E>
|
|
10
|
+
export declare const useGet: <E>(f: () => Promise<E>, initial?: Partial<E>) => [E, () => Promise<E>];
|
|
11
11
|
export declare const useGetList: <E>(f: () => Promise<List<E>>) => [List<E>, () => Promise<PageList<E>>];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thisisagile/easy-react",
|
|
3
|
-
"version": "15.28.
|
|
3
|
+
"version": "15.28.2",
|
|
4
4
|
"description": "Straightforward library building micro applications in react",
|
|
5
5
|
"author": "Sander Hoogendoorn",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@thisisagile/easy-test": "15.28.
|
|
41
|
-
"@thisisagile/easy-test-react": "15.28.
|
|
40
|
+
"@thisisagile/easy-test": "15.28.2",
|
|
41
|
+
"@thisisagile/easy-test-react": "15.28.2",
|
|
42
42
|
"@types/copyfiles": "^2.4.4",
|
|
43
43
|
"copyfiles": "^2.4.1",
|
|
44
44
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"next-transpile-modules": "^10.0.0"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@thisisagile/easy": "^15.28.
|
|
50
|
+
"@thisisagile/easy": "^15.28.2",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0",
|
|
53
53
|
"sass": "^1.77.2"
|