Repository navigation
eden/installation #708
Replies: 4 comments 1 reply
|
I have a monorepo with this structure: paths in tsconfig.json at backend are: "paths": {
"@/*": ["./src/*"],
"~/*": ["../*"]
}paths in tsconfig.json at frontend are: "paths": {
"@/*": ["./*"],
"~/*": ["../*"]
}That would cause Elysia type inference to not work correctly. I added this to my frontend "references": [
{
"path": "../backend"
}
]I'm not sure if this is a good solution, but it works. |
1 reply
|
i love using bun with elysia and react |
0 replies
export const app = new Elysia()...
export type App = typeof app;import type { App } from "api";
export const dataApi = treaty<App>(apiUrl);
export const categoriesListApi = dataApi.admin.categories.get;
Treaty.Data<typeof categoriesListApi>,const categoriesListApi: (options: {
headers?: Record<string, unknown> | undefined;
query: {
q: string;
sort: string;
order: string;
limit: number;
page: number;
};
fetch?: RequestInit | undefined;
}) => Promise<Treaty.TreatyResponse<{
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
}>>does anyone have any suggestions? i use monorepo (turborepo) |
0 replies
|
is it possible to use the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
eden/installation
#0f172a
https://elysiajs.com/eden/installation
All reactions