elysia 0.7.17 → 0.7.18
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/0.7.7 +0 -0
- package/dist/bun/index.d.ts +3 -3
- package/dist/bun/index.js +52 -52
- package/dist/bun/index.js.map +4 -4
- package/dist/cjs/handler.js +21 -4
- package/dist/cjs/index.d.ts +3 -3
- package/dist/handler.js +10 -10
- package/dist/index.d.ts +3 -3
- package/package.json +6 -1
package/0.7.7
ADDED
|
File without changes
|
package/dist/bun/index.d.ts
CHANGED
|
@@ -757,13 +757,13 @@ export default class Elysia<BasePath extends string = '', Decorators extends Dec
|
|
|
757
757
|
* })
|
|
758
758
|
* ```
|
|
759
759
|
*/
|
|
760
|
-
route<const Method extends HTTPMethod, const
|
|
760
|
+
route<const Method extends HTTPMethod, const Path extends string, const LocalSchema extends InputSchema<Extract<keyof Definitions['type'], string>>, const Function extends Handler<Route, Decorators, `${BasePath}${Path}`>, const Route extends MergeSchema<UnwrapRoute<LocalSchema, Definitions['type']>, ParentSchema>>(method: Method, path: Path, handler: Function, { config, ...hook }?: LocalHook<LocalSchema, Route, Decorators, Definitions['error'], `${BasePath}${Path}`> & {
|
|
761
761
|
config: {
|
|
762
762
|
allowMeta?: boolean;
|
|
763
763
|
};
|
|
764
764
|
}): Elysia<BasePath, Decorators, Definitions, ParentSchema, Prettify<Routes & {
|
|
765
|
-
[path in `${BasePath}${
|
|
766
|
-
[method in
|
|
765
|
+
[path in `${BasePath}${Path}`]: {
|
|
766
|
+
[method in Lowercase<Method>]: Route extends {
|
|
767
767
|
body: infer Body;
|
|
768
768
|
params: infer Params;
|
|
769
769
|
query: infer Query;
|