@prism-engineer/router
Version:
Type-safe Express.js router with automatic client generation
32 lines • 746 B
TypeScript
export declare const helloRoute: {
path: "/api/hello";
method: "GET";
request?: {
body?: undefined;
query?: undefined;
headers?: undefined;
} | undefined;
response?: {
200: {
contentType: "application/json";
body: import("@sinclair/typebox").TObject<{
message: import("@sinclair/typebox").TString;
}>;
};
} | undefined;
auth?: undefined;
handler: (req: {
body: {};
query: {};
headers: {};
params: {};
auth: never;
rawRequest: any;
}) => Promise<{
status: 200;
body: {
message: string;
};
}>;
};
//# sourceMappingURL=hello.d.ts.map