Files
homaroma/apps/backend/src/routes/articles.d.ts
T
2026-06-15 08:24:07 -04:00

194 lines
4.9 KiB
TypeScript

import { Elysia } from "elysia";
export declare const articlesRoute: Elysia<"/articles", {
decorator: {};
store: {};
derive: {};
resolve: {};
}, {
typebox: {};
error: {};
}, {
schema: {};
standaloneSchema: {};
macro: {};
macroFn: {};
parser: {};
response: {};
}, {
articles: {
get: {
body: unknown;
params: {};
query: unknown;
headers: unknown;
response: {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};
};
};
} & {
articles: {
":slug": {
get: {
body: unknown;
params: {
slug: string;
} & {};
query: unknown;
headers: unknown;
response: {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};
};
};
};
} & {
articles: {
id: {
":id": {
get: {
body: unknown;
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};
};
};
};
};
} & {
articles: {
post: {
body: {
coverImage?: string;
slug: string;
title: string;
isPublished: boolean;
content: string;
};
params: {};
query: unknown;
headers: unknown;
response: {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};
};
};
} & {
articles: {
":id": {
put: {
body: {
coverImage?: string;
slug: string;
title: string;
isPublished: boolean;
content: string;
};
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};
};
};
};
} & {
articles: {
":id": {
delete: {
body: unknown;
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
error?: never;
} | {
error: string;
success?: never;
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};
};
};
};
} & {
articles: {
":id": {
translations: {
patch: {
body: unknown;
params: {
id: string;
} & {};
query: unknown;
headers: unknown;
response: {
200: {
error: string;
success?: never;
translations?: never;
article?: never;
} | {
success: boolean;
translations: any[];
article: any;
error?: never;
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};
};
};
};
};
}, {
derive: {};
resolve: {};
schema: {};
standaloneSchema: {};
response: {};
}, {
derive: {};
resolve: {};
schema: {};
standaloneSchema: {};
response: {};
}>;
//# sourceMappingURL=articles.d.ts.map