@prism-engineer/router
Version:
Type-safe Express.js router with automatic client generation
36 lines • 958 B
TypeScript
export declare const getPostsRoute: {
path: "/api/v1/posts";
method: "GET";
request?: {
body?: undefined;
query?: undefined;
headers?: undefined;
} | undefined;
response?: {
200: {
contentType: "application/json";
body: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
id: import("@sinclair/typebox").TNumber;
title: import("@sinclair/typebox").TString;
content: import("@sinclair/typebox").TString;
}>>;
};
} | undefined;
auth?: undefined;
handler: (req: {
body: {};
query: {};
headers: {};
params: {};
auth: never;
rawRequest: any;
}) => Promise<{
status: 200;
body: {
title: string;
id: number;
content: string;
}[];
}>;
};
//# sourceMappingURL=posts.d.ts.map