import { endpoint } from "../src"; import { startServer } from "../src/core/server"; type Data = { name: string; }; startServer( endpoint(async (req) => { return { status: 200, body: { name: "foo", }, }; }), );