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 +1 -1
- package/package.json +1 -1
- package/src/types.ts +1 -1
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:
|
|
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
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:
|
|
310
|
+
params: undefined extends Typed['params']
|
|
311
311
|
? Record<ExtractPath<Path>, string>
|
|
312
312
|
: Typed['params']
|
|
313
313
|
response: undefined extends Typed['response']
|