@cloudcome/utils-uni 1.2.7 → 1.2.8
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/cloud.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/cloud.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type CreateUseCloudObjectOptions = ImportObjectArgs[1] & {
|
|
|
21
21
|
* @param options 导入云对象时的可选配置参数
|
|
22
22
|
* @returns 返回一个函数,该函数可以用于创建云对象调用hook
|
|
23
23
|
*/
|
|
24
|
-
export declare function createUseCloudObject(objectName: ImportObjectArgs[0], options?: CreateUseCloudObjectOptions): <I extends AnyArray, O>(caller: (server: UniCloudObjectServer<I, O>, ...inputs: I) => Promise<UniCloudObjectOutput<O>>, options?: UseRequestOptions<I, O>) => import('@cloudcome/utils-vue/request').
|
|
24
|
+
export declare function createUseCloudObject(objectName: ImportObjectArgs[0], options?: CreateUseCloudObjectOptions): <I extends AnyArray, O>(caller: (server: UniCloudObjectServer<I, O>, ...inputs: I) => Promise<UniCloudObjectOutput<O>>, options?: UseRequestOptions<I, O>) => import('@cloudcome/utils-vue/request').UseRequestOutputs<I, O>;
|
|
25
25
|
export type UniCloudDatabaseOutput<T> = {
|
|
26
26
|
result: T & {
|
|
27
27
|
errCode?: number | string;
|
|
@@ -40,5 +40,5 @@ export type UseCloudDatabaseOptions<I extends AnyArray, O> = UseRequestOptions<I
|
|
|
40
40
|
* @param options 配置选项
|
|
41
41
|
* @returns 返回一个请求hook,用于处理云数据库调用
|
|
42
42
|
*/
|
|
43
|
-
export declare function useCloudDatabase<I extends AnyArray, O>(caller: (db: UniCloud.Database, ...inputs: I) => Promise<UniCloudDatabaseOutput<O>>, options?: UseCloudDatabaseOptions<I, O>): import('@cloudcome/utils-vue/request').
|
|
43
|
+
export declare function useCloudDatabase<I extends AnyArray, O>(caller: (db: UniCloud.Database, ...inputs: I) => Promise<UniCloudDatabaseOutput<O>>, options?: UseCloudDatabaseOptions<I, O>): import('@cloudcome/utils-vue/request').UseRequestOutputs<I, O>;
|
|
44
44
|
export {};
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcome/utils-uni",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "cloudcome utils for uni-app",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22"
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@cloudcome/utils-core": "~1.4.1",
|
|
46
|
-
"@cloudcome/utils-vue": "~1.
|
|
46
|
+
"@cloudcome/utils-vue": "~1.8.0",
|
|
47
47
|
"@dcloudio/uni-app": "vue3",
|
|
48
48
|
"vue": "^3.5.13"
|
|
49
49
|
},
|