daunus
v0.2.8
Published
Opinionated edge-first library for TypeScript
Readme
Daunus
Opinionated edge-first library for TypeScript
example:
const input = $input({ language: z.string() })
const useCase = $useCase("Say hello in language")
.input(input)
.handle(
({ scope, prompt }) => prompt`
Say hello in ${scope.input.language}
`
)
const { data } = await useCase.run({ language: "Spanish" })