@deessejs/functions 0.0.68 → 0.0.70
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/extensions/rpc.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/extensions/rpc.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ type CoreAPI<C> = {
|
|
|
7
7
|
args: TArgs;
|
|
8
8
|
handler: (ctx: C, args: z.infer<TArgs>) => AsyncResult<TOutput, TError>;
|
|
9
9
|
}) => (contextProvider: () => Promise<C>) => (input: z.input<TArgs>) => AsyncResult<TOutput, TError>;
|
|
10
|
+
query: <TArgs extends ZodType<any, any, any>, TOutput, TError extends Exception>(options: {
|
|
11
|
+
args: TArgs;
|
|
12
|
+
handler: (ctx: C, args: z.infer<TArgs>) => AsyncResult<TOutput, TError>;
|
|
13
|
+
}) => (contextProvider: () => Promise<C>) => (input: z.input<TArgs>) => AsyncResult<TOutput, TError>;
|
|
10
14
|
};
|
|
11
15
|
interface MutationHKT extends HKT {
|
|
12
16
|
new: CoreAPI<this["_C"]>;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -20,3 +20,5 @@ __exportStar(require("./extensions/rpc"), exports);
|
|
|
20
20
|
// Context and typing exports
|
|
21
21
|
__exportStar(require("./context"), exports);
|
|
22
22
|
__exportStar(require("./events"), exports);
|
|
23
|
+
__exportStar(require("./errors"), exports);
|
|
24
|
+
__exportStar(require("./errors/types"), exports);
|
package/package.json
CHANGED