Skip to content

Commit 52a5c27

Browse files
committed
chore: publish new release and some updates at README
1 parent 9abc3cb commit 52a5c27

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
[![npm](https://img.shields.io/npm/v/elysia-autoload?logo=npm&style=flat&labelColor=000&color=3b82f6)](https://www.npmjs.org/package/elysia-autoload)
66
[![npm downloads](https://img.shields.io/npm/dw/elysia-autoload?logo=npm&style=flat&labelColor=000&color=3b82f6)](https://www.npmjs.org/package/elysia-autoload)
7+
78
<!-- [![JSR](https://jsr.io/badges/elysia-autoload)](https://jsr.io/elysia-autoload)
89
[![JSR Score](https://jsr.io/badges/elysia-autoload/score)](https://jsr.io/elysia-autoload) -->
910

1011
</div>
1112

12-
Plugin for [Elysia](https://elysiajs.com/) which autoload all routes in directory and code-generate types for [Eden](https://elysiajs.com/eden/overview.html) with [`Bun.build`](#bun-build-usage) support!
13+
Plugin for [Elysia](https://elysiajs.com/) which autoload all routes in directory and code-generate types for [Eden](https://elysiajs.com/eden/overview.html) with [`Bun.build`](#bun-build-usage) and **Node adapter** support!
1314

1415
## Installation
1516

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,14 @@
4040
"@types/node": "^22.10.2",
4141
"elysia": "^1.2.9",
4242
"pkgroll": "2.5.1",
43-
"typescript": "^5.7.2"
43+
"typescript": "^5.7.2",
44+
"@elysiajs/node": "^1.2.3"
4445
},
4546
"peerDependencies": {
4647
"elysia": "^1.2.0"
4748
},
4849
"engines": {
49-
"node": ">=22"
50-
},
51-
"dependencies": {
52-
"@elysiajs/node": "^1.2.3"
50+
"node": ">=22",
51+
"bun": ">=1.0.0"
5352
}
5453
}

src/types.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ type PathToObject<
1313
namespace ElysiaMatch {
1414
export type RouteEnd = Record<string, RouteSchema>;
1515

16-
export type Fx = (...args: unknown[]) => AnyElysia;
16+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
17+
export type Fx = (...args: any[]) => AnyElysia;
1718
export type All = AnyElysia | Fx;
1819

1920
export type Extract<T extends All> = T extends Fx ? ReturnType<T> : T;

0 commit comments

Comments
 (0)