Skip to content

Commit e42641e

Browse files
committed
chore: bump
1 parent 5a0ec34 commit e42641e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,25 @@ const { data } = await app.test["some-path-param"].get({
134134
console.log(data);
135135
```
136136

137+
`routes.ts` will be:
138+
139+
```ts
140+
// @filename: routes.ts
141+
142+
import type { ElysiaWithBaseUrl } from "elysia-autoload";
143+
import type Route0 from "./routes/index";
144+
import type Route1 from "./routes/test/[some]/index";
145+
146+
declare global {
147+
export type Routes = ElysiaWithBaseUrl<"/api", ReturnType<typeof Route0>> &
148+
ElysiaWithBaseUrl<"/api/test/:some", ReturnType<typeof Route1>>;
149+
}
150+
```
151+
137152
Example of app with types code-generation you can see in [example](https://github.com/kravetsone/elysia-autoload/tree/main/example)
138153

154+
**Currently, Eden types generation is broken!!**
155+
139156
### Bun build usage
140157

141158
You can use this plugin with `Bun.build`, thanks to [esbuild-plugin-autoload](https://github.com/kravetsone/esbuild-plugin-autoload)!

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elysia-autoload",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"author": "kravetsone",
55
"type": "module",
66
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)