@akanjs/signal 0.9.47 → 0.9.48
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/package.json +1 -1
- package/src/fetch.d.ts +5 -5
- package/src/gql.d.ts +1 -4
package/package.json
CHANGED
package/src/fetch.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const fetch: {
|
|
2
|
-
ping: (option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<string>;
|
|
3
2
|
publishPing: (option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<void>;
|
|
3
|
+
ping: (option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<string>;
|
|
4
4
|
pingBody: (args_0: string, option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<string>;
|
|
5
5
|
pingParam: (args_0: string, option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<string>;
|
|
6
6
|
pingQuery: (args_0: string, option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<string>;
|
|
@@ -13,9 +13,9 @@ export declare const fetch: {
|
|
|
13
13
|
listenWsPing: (handleEvent: (data: string & {
|
|
14
14
|
__Returns__: "Emit";
|
|
15
15
|
}) => any, options?: import("@akanjs/common").FetchPolicy) => () => void;
|
|
16
|
-
subscribePubsubPing: (onData: (data: string & {
|
|
16
|
+
subscribePubsubPing: (onData: (data: Omit<string & {
|
|
17
17
|
__Returns__: "Subscribe";
|
|
18
|
-
}) => void, fetchPolicy?: import("@akanjs/common").FetchPolicy<any> | undefined) => () => void;
|
|
18
|
+
}, "__Returns__">) => void, fetchPolicy?: import("@akanjs/common").FetchPolicy<any> | undefined) => () => void;
|
|
19
19
|
client: import("./client").Client;
|
|
20
20
|
clone: (option?: {
|
|
21
21
|
jwt: string | null;
|
|
@@ -24,9 +24,9 @@ export declare const fetch: {
|
|
|
24
24
|
listenWsPing: (handleEvent: (data: string & {
|
|
25
25
|
__Returns__: "Emit";
|
|
26
26
|
}) => any, options?: import("@akanjs/common").FetchPolicy) => () => void;
|
|
27
|
-
subscribePubsubPing: (onData: (data: string & {
|
|
27
|
+
subscribePubsubPing: (onData: (data: Omit<string & {
|
|
28
28
|
__Returns__: "Subscribe";
|
|
29
|
-
}) => void, fetchPolicy?: import("@akanjs/common").FetchPolicy<any> | undefined) => () => void;
|
|
29
|
+
}, "__Returns__">) => void, fetchPolicy?: import("@akanjs/common").FetchPolicy<any> | undefined) => () => void;
|
|
30
30
|
publishPing: (option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<void>;
|
|
31
31
|
ping: (option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<string>;
|
|
32
32
|
pingBody: (args_0: string, option?: import("@akanjs/common").FetchPolicy<any> | undefined) => Promise<string>;
|
package/src/gql.d.ts
CHANGED
|
@@ -169,12 +169,9 @@ type ListenMethods<Sig> = {
|
|
|
169
169
|
[K in keyof Sig as K extends string ? HasMarker<Sig[K], "Emit"> extends true ? `listen${Capitalize<K>}` : never : never]: Sig[K] extends (...args: any) => infer R ? (handleEvent: (data: Awaited<R>) => any, options?: FetchPolicy) => () => void : never;
|
|
170
170
|
};
|
|
171
171
|
export type GetWsMessageOf<Sig> = EmitMethods<Sig> & ListenMethods<Sig>;
|
|
172
|
-
type RemoveReturnMeta<Return> = Return extends infer R & {
|
|
173
|
-
__Returns__: any;
|
|
174
|
-
} ? R : Return;
|
|
175
172
|
type GenerateSubscribeMethod<Fn> = Fn extends (...args: infer Args) => infer R ? (...args: [
|
|
176
173
|
...args: FilterOutInternalArgs<Args>,
|
|
177
|
-
onData: (data:
|
|
174
|
+
onData: (data: Omit<Awaited<R>, "__Returns__">) => void,
|
|
178
175
|
fetchPolicy?: FetchPolicy
|
|
179
176
|
]) => () => void : never;
|
|
180
177
|
export type GetWsPubsubOf<Sig> = {
|