feat: initial commit
This commit is contained in:
13
tests/mocks/actions.ts
Normal file
13
tests/mocks/actions.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import z from "zod";
|
||||
|
||||
import { action } from "../../libraries/action.ts";
|
||||
|
||||
export const addTwoNumbers = action
|
||||
.make("addTwoNumbers")
|
||||
.input({ a: z.number(), b: z.number() })
|
||||
.output({ added: z.number() })
|
||||
.handle(async ({ a, b }) => {
|
||||
return {
|
||||
added: a + b,
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user