@web-ts-toolkit/access-router-react 0.5.0 → 0.6.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.
- package/index.d.mts +6 -0
- package/index.d.ts +6 -0
- package/package.json +2 -3
package/index.d.mts
CHANGED
|
@@ -160,6 +160,12 @@ interface UseDistinctQueryResult {
|
|
|
160
160
|
reset: () => void;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Creates query and mutation hooks bound to one `ModelService<T>`.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* const { useList, useCreate } = createModelHooks({ modelService });
|
|
168
|
+
*/
|
|
163
169
|
declare function createModelHooks<T extends Document>(config: {
|
|
164
170
|
modelService: ModelService<T>;
|
|
165
171
|
}): {
|
package/index.d.ts
CHANGED
|
@@ -160,6 +160,12 @@ interface UseDistinctQueryResult {
|
|
|
160
160
|
reset: () => void;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
+
/**
|
|
164
|
+
* Creates query and mutation hooks bound to one `ModelService<T>`.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* const { useList, useCreate } = createModelHooks({ modelService });
|
|
168
|
+
*/
|
|
163
169
|
declare function createModelHooks<T extends Document>(config: {
|
|
164
170
|
modelService: ModelService<T>;
|
|
165
171
|
}): {
|
package/package.json
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
"name": "@web-ts-toolkit/access-router-react",
|
|
3
3
|
"description": "React hooks for @web-ts-toolkit/access-router-client model services",
|
|
4
4
|
"homepage": "https://web-ts-toolkit.pages.dev/docs/packages/access-router-react",
|
|
5
|
-
"version": "0.
|
|
6
|
-
"sideEffects": false,
|
|
5
|
+
"version": "0.6.1",
|
|
7
6
|
"keywords": [
|
|
8
7
|
"react",
|
|
9
8
|
"hooks",
|
|
@@ -28,7 +27,7 @@
|
|
|
28
27
|
},
|
|
29
28
|
"peerDependencies": {
|
|
30
29
|
"react": "^18.0.0 || ^19.0.0",
|
|
31
|
-
"@web-ts-toolkit/access-router-client": "0.
|
|
30
|
+
"@web-ts-toolkit/access-router-client": "0.6.1"
|
|
32
31
|
},
|
|
33
32
|
"author": "Junmin Ahn",
|
|
34
33
|
"bugs": {
|