A type checker for JSON like objects from the request.
bun create vixeny
Here a way to set up your plugin.
import { wrap } from "vixeny";
import { options, request } from "./setup.ts";
const serve = wrap(options)()
.get({
path: "/hi",
method: "POST",
f: ({ typebox }) => typebox?.user ? typebox.user.userId : null,
})
.compose();
const response = await serveMock(request);
const body = await response.text();
console.log(
// 50
body,
);