Template
1
0

feat: initial commit

This commit is contained in:
2025-04-18 20:18:50 +00:00
commit 7df57522d2
20 changed files with 2094 additions and 0 deletions

13
tests/mocks/actions.ts Normal file
View 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,
};
});