77 lines
1.8 KiB
TypeScript
77 lines
1.8 KiB
TypeScript
import { Elysia } from "elysia";
|
|
export declare const newsletterRoute: Elysia<"/newsletter", {
|
|
decorator: {};
|
|
store: {};
|
|
derive: {};
|
|
resolve: {};
|
|
}, {
|
|
typebox: {};
|
|
error: {};
|
|
}, {
|
|
schema: {};
|
|
standaloneSchema: {};
|
|
macro: {};
|
|
macroFn: {};
|
|
parser: {};
|
|
response: {};
|
|
}, {
|
|
newsletter: {
|
|
subscribe: {
|
|
post: {
|
|
body: {
|
|
email: string;
|
|
};
|
|
params: {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
200: {
|
|
message: string;
|
|
error?: never;
|
|
} | {
|
|
error: string;
|
|
message?: never;
|
|
};
|
|
422: {
|
|
type: "validation";
|
|
on: string;
|
|
summary?: string;
|
|
message?: string;
|
|
found?: unknown;
|
|
property?: string;
|
|
expected?: string;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} & {
|
|
newsletter: {
|
|
subscribers: {
|
|
get: {
|
|
body: unknown;
|
|
params: {};
|
|
query: unknown;
|
|
headers: unknown;
|
|
response: {
|
|
[x: string]: any;
|
|
[x: number]: any;
|
|
[x: symbol]: any;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}, {
|
|
derive: {};
|
|
resolve: {};
|
|
schema: {};
|
|
standaloneSchema: {};
|
|
response: {};
|
|
}, {
|
|
derive: {};
|
|
resolve: {};
|
|
schema: {};
|
|
standaloneSchema: {};
|
|
response: {};
|
|
}>;
|
|
//# sourceMappingURL=newsletter.d.ts.map
|