@akanjs/signal 0.9.58 → 0.9.60-canary.0
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/cjs/src/gql.js +1 -1
- package/esm/src/gql.js +1 -1
- package/package.json +1 -1
- package/src/gql.d.ts +1 -5
package/cjs/src/gql.js
CHANGED
|
@@ -38,7 +38,7 @@ const getGqlOnStorage = (refName) => {
|
|
|
38
38
|
const setGqlOnStorage = (refName, modelGql) => {
|
|
39
39
|
Reflect.defineMetadata(refName, modelGql, GqlStorage.prototype);
|
|
40
40
|
};
|
|
41
|
-
const gqlOf = (constant, filterRef, sigRef
|
|
41
|
+
const gqlOf = (constant, filterRef, sigRef) => {
|
|
42
42
|
return null;
|
|
43
43
|
};
|
|
44
44
|
const query = async (fetchClient, query2, variables = {}, option = {}) => {
|
package/esm/src/gql.js
CHANGED
|
@@ -9,7 +9,7 @@ const getGqlOnStorage = (refName) => {
|
|
|
9
9
|
const setGqlOnStorage = (refName, modelGql) => {
|
|
10
10
|
Reflect.defineMetadata(refName, modelGql, GqlStorage.prototype);
|
|
11
11
|
};
|
|
12
|
-
const gqlOf = (constant, filterRef, sigRef
|
|
12
|
+
const gqlOf = (constant, filterRef, sigRef) => {
|
|
13
13
|
return null;
|
|
14
14
|
};
|
|
15
15
|
const query = async (fetchClient, query2, variables = {}, option = {}) => {
|
package/package.json
CHANGED
package/src/gql.d.ts
CHANGED
|
@@ -159,11 +159,7 @@ export declare const gqlOf: <T extends string, Input, Obj extends BaseObject, Fu
|
|
|
159
159
|
id: string;
|
|
160
160
|
}, Light extends {
|
|
161
161
|
id: string;
|
|
162
|
-
}, Insight, Filter extends FilterInstance, Signal, _CapitalizedT extends string, _Default, _DefaultInput, _DefaultState, _DefaultStateInput, _DefaultInsight, _PurifiedInput, _Doc, _DocInput, _QueryOfDoc, _Sort = ExtractSort<Filter>, _SignalAction = GetActionObject<Signal>>(constant: ConstantModel<T, Input, Obj, Full, Light, Insight, _CapitalizedT, _Default, _DefaultInput, _DefaultState, _DefaultStateInput, _DefaultInsight, _PurifiedInput, _Doc, _DocInput, _QueryOfDoc>, filterRef: Type<Filter>, sigRef: Type<Signal>,
|
|
163
|
-
overwrite?: {
|
|
164
|
-
[key: string]: any;
|
|
165
|
-
};
|
|
166
|
-
}) => DbGraphQL<T, Input, Full, Light, Insight, Filter, LightWeightFetch<GetQueryMutationOf<_SignalAction & DefaultSignal<T, Input, Full, Light, Insight, Filter, _CapitalizedT, _PurifiedInput, _QueryOfDoc, _Sort>, Full>, Full, Light>, _SignalAction, _CapitalizedT, _Default, _DefaultInput, _DefaultState, _DefaultStateInput, _Doc, _DocInput, _QueryOfDoc, _Sort>;
|
|
162
|
+
}, Insight, Filter extends FilterInstance, Signal, _CapitalizedT extends string, _Default, _DefaultInput, _DefaultState, _DefaultStateInput, _DefaultInsight, _PurifiedInput, _Doc, _DocInput, _QueryOfDoc, _Sort = ExtractSort<Filter>, _SignalAction = GetActionObject<Signal>>(constant: ConstantModel<T, Input, Obj, Full, Light, Insight, _CapitalizedT, _Default, _DefaultInput, _DefaultState, _DefaultStateInput, _DefaultInsight, _PurifiedInput, _Doc, _DocInput, _QueryOfDoc>, filterRef: Type<Filter>, sigRef: Type<Signal>) => DbGraphQL<T, Input, Full, Light, Insight, Filter, LightWeightFetch<GetQueryMutationOf<_SignalAction & DefaultSignal<T, Input, Full, Light, Insight, Filter, _CapitalizedT, _PurifiedInput, _QueryOfDoc, _Sort>, Full>, Full, Light>, _SignalAction, _CapitalizedT, _Default, _DefaultInput, _DefaultState, _DefaultStateInput, _Doc, _DocInput, _QueryOfDoc, _Sort>;
|
|
167
163
|
export declare const query: <Query = any>(fetchClient: Client, query: string, variables?: AnyVariables, option?: FetchPolicy) => Promise<NonNullable<Query> | undefined>;
|
|
168
164
|
export declare const mutate: <Mutation = any>(fetchClient: Client, mutation: string, variables?: AnyVariables, option?: FetchPolicy) => Promise<NonNullable<Mutation> | undefined>;
|
|
169
165
|
export declare const fetchOf: <Signal, _SignalAction = GetActionObject<Signal>>(sigRef: Type<Signal>) => GetWsMessageOf<_SignalAction> & GetWsPubsubOf<_SignalAction> & GetQueryMutationOf<_SignalAction>;
|