@litbase/react 4.0.7 → 4.0.13
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/hooks/use-current-user.d.ts +2 -5
- package/hooks/use-query.d.ts +7 -10
- package/index.d.ts +2 -3
- package/package.json +4 -4
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import { UserInterface } from
|
|
2
|
-
|
|
3
|
-
declare function useCurrentUser<TUser extends UserInterface = UserInterface>(): TUser;
|
|
4
|
-
|
|
5
|
-
export { useCurrentUser };
|
|
1
|
+
import { UserInterface } from "@litbase/core";
|
|
2
|
+
export declare function useCurrentUser<TUser extends UserInterface = UserInterface>(): TUser;
|
package/hooks/use-query.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { DocumentInterface,
|
|
2
|
-
|
|
3
|
-
declare function
|
|
4
|
-
declare function
|
|
5
|
-
declare function useQuery<T extends DocumentInterface>(name: string, query:
|
|
6
|
-
declare function useQuery<T extends DocumentInterface>(name: string, query:
|
|
7
|
-
declare function useQuery<T extends DocumentInterface>(name: string, query:
|
|
8
|
-
declare function useQuery<T extends DocumentInterface>(name: string, query: MultiObservableQueryObject | null): [T[], boolean, Error | null, boolean];
|
|
9
|
-
|
|
10
|
-
export { useQuery, useQueryType, useQueryTypeOne };
|
|
1
|
+
import { DocumentInterface, MultiObservableQueryObject, MultiPromiseQueryObject, QueryOptions, QueryTypeBody, SingleObservableQueryObject, SinglePromiseQueryObject } from "@litbase/core";
|
|
2
|
+
export declare function useQueryTypeOne<TDoc extends DocumentInterface>(typeName: string, query: QueryTypeBody | null, options?: QueryOptions): [TDoc | null, boolean, Error | null, boolean];
|
|
3
|
+
export declare function useQueryType<TDoc extends DocumentInterface>(typeName: string, query: QueryTypeBody | null, options?: QueryOptions): [TDoc[], boolean, Error | null, boolean];
|
|
4
|
+
export declare function useQuery<T extends DocumentInterface>(name: string, query: SinglePromiseQueryObject | null): [T | null, boolean, Error | null, boolean];
|
|
5
|
+
export declare function useQuery<T extends DocumentInterface>(name: string, query: MultiPromiseQueryObject | null): [T[], boolean, Error | null, boolean];
|
|
6
|
+
export declare function useQuery<T extends DocumentInterface>(name: string, query: SingleObservableQueryObject | null): [T | null, boolean, Error | null, boolean];
|
|
7
|
+
export declare function useQuery<T extends DocumentInterface>(name: string, query: MultiObservableQueryObject | null): [T[], boolean, Error | null, boolean];
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { useCurrentUser } from
|
|
3
|
-
import '@litbase/core';
|
|
1
|
+
export * from "./hooks/use-query.js";
|
|
2
|
+
export { useCurrentUser } from "./hooks/use-current-user.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@litbase/react",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.13",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"directory": "dist"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@litbase/client": "^4.0.
|
|
33
|
-
"@litbase/core": "^4.0.
|
|
32
|
+
"@litbase/client": "^4.0.13",
|
|
33
|
+
"@litbase/core": "^4.0.13",
|
|
34
34
|
"rxjs": "^7.8.0",
|
|
35
35
|
"tsup": "^6.6.3",
|
|
36
36
|
"typescript": "^4.9.5"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9b8dec53bc4cc36241ce91c0a1156dac6f1290bd"
|
|
39
39
|
}
|