elysia 0.3.0-beta.3 → 0.3.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.ts CHANGED
@@ -135,7 +135,7 @@ export type TypedRouteToEden<Schema extends TypedSchema = TypedSchema, Definitio
135
135
  body: Typed['body'];
136
136
  headers: Typed['headers'];
137
137
  query: Typed['query'];
138
- params: IsUnknown<Typed['params']> extends true ? Record<ExtractPath<Path>, string> : Typed['params'];
138
+ params: undefined extends Typed['params'] ? Record<ExtractPath<Path>, string> : Typed['params'];
139
139
  response: undefined extends Typed['response'] ? {
140
140
  '200': Catch;
141
141
  } : Typed['response'];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "elysia",
3
3
  "description": "Fast, and friendly Bun web framework",
4
- "version": "0.3.0-beta.3",
4
+ "version": "0.3.0-beta.4",
5
5
  "author": {
6
6
  "name": "saltyAom",
7
7
  "url": "https://github.com/SaltyAom",
package/src/types.ts CHANGED
@@ -307,7 +307,7 @@ export type TypedRouteToEden<
307
307
  body: Typed['body']
308
308
  headers: Typed['headers']
309
309
  query: Typed['query']
310
- params: IsUnknown<Typed['params']> extends true
310
+ params: undefined extends Typed['params']
311
311
  ? Record<ExtractPath<Path>, string>
312
312
  : Typed['params']
313
313
  response: undefined extends Typed['response']