@@ -164,7 +164,9 @@ import type {
164164 MacroProperty ,
165165 MaybeValueOrVoidFunction ,
166166 IntersectIfObject ,
167- IntersectIfObjectSchema
167+ IntersectIfObjectSchema ,
168+ EmptyRouteSchema ,
169+ UnknownRouteSchema
168170} from './types'
169171
170172export type AnyElysia = Elysia < any , any , any , any , any , any , any >
@@ -1285,9 +1287,9 @@ export default class Elysia<
12851287 Ephemeral [ 'standaloneSchema' ] &
12861288 Volatile [ 'standaloneSchema' ] &
12871289 'global' extends Type
1288- ? { params : Record < string , string > }
1290+ ? { params : { [ name : string ] : string | undefined } }
12891291 : 'scoped' extends Type
1290- ? { params : Record < string , string > }
1292+ ? { params : { [ name : string ] : string | undefined } }
12911293 : { } ,
12921294 'global' extends Type
12931295 ? {
@@ -1426,17 +1428,7 @@ export default class Elysia<
14261428 onTransform < const Schema extends RouteSchema > (
14271429 handler : MaybeArray <
14281430 TransformHandler <
1429- MergeSchema <
1430- Schema ,
1431- MergeSchema <
1432- Volatile [ 'schema' ] ,
1433- MergeSchema < Ephemeral [ 'schema' ] , Metadata [ 'schema' ] >
1434- > ,
1435- BasePath
1436- > &
1437- Metadata [ 'standaloneSchema' ] &
1438- Ephemeral [ 'standaloneSchema' ] &
1439- Volatile [ 'standaloneSchema' ] ,
1431+ UnknownRouteSchema < ResolvePath < BasePath > > ,
14401432 {
14411433 decorator : Singleton [ 'decorator' ]
14421434 store : Singleton [ 'store' ]
@@ -1470,22 +1462,13 @@ export default class Elysia<
14701462 options : { as : Type } ,
14711463 handler : MaybeArray <
14721464 TransformHandler <
1473- MergeSchema <
1474- Schema ,
1475- MergeSchema <
1476- Volatile [ 'schema' ] ,
1477- MergeSchema < Ephemeral [ 'schema' ] , Metadata [ 'schema' ] >
1478- > ,
1479- BasePath
1480- > &
1481- Metadata [ 'standaloneSchema' ] &
1482- Ephemeral [ 'standaloneSchema' ] &
1483- Volatile [ 'standaloneSchema' ] &
1465+ UnknownRouteSchema <
14841466 'global' extends Type
1485- ? { params : Record < string , string > }
1486- : 'scoped' extends Type
1487- ? { params : Record < string , string > }
1488- : { } ,
1467+ ? { [ name : string ] : string | undefined }
1468+ : 'scoped' extends Type
1469+ ? { [ name : string ] : string | undefined }
1470+ : ResolvePath < BasePath >
1471+ > ,
14891472 'global' extends Type
14901473 ? {
14911474 decorator : Singleton [ 'decorator' ]
@@ -1564,9 +1547,9 @@ export default class Elysia<
15641547 Ephemeral [ 'standaloneSchema' ] &
15651548 Volatile [ 'standaloneSchema' ] &
15661549 'global' extends Type
1567- ? { params : Record < string , string > }
1550+ ? { params : { [ name : string ] : string | undefined } }
15681551 : 'scoped' extends Type
1569- ? { params : Record < string , string > }
1552+ ? { params : { [ name : string ] : string | undefined } }
15701553 : { } ,
15711554 Singleton &
15721555 ( 'global' extends Type
@@ -2064,9 +2047,9 @@ export default class Elysia<
20642047 Ephemeral [ 'standaloneSchema' ] &
20652048 Volatile [ 'standaloneSchema' ] &
20662049 'global' extends Type
2067- ? { params : Record < string , string > }
2050+ ? { params : { [ name : string ] : string | undefined } }
20682051 : 'scoped' extends Type
2069- ? { params : Record < string , string > }
2052+ ? { params : { [ name : string ] : string | undefined } }
20702053 : { } ,
20712054 Singleton &
20722055 ( 'global' extends Type
@@ -2188,9 +2171,9 @@ export default class Elysia<
21882171 Ephemeral [ 'standaloneSchema' ] &
21892172 Volatile [ 'standaloneSchema' ] &
21902173 'global' extends Type
2191- ? { params : Record < string , string > }
2174+ ? { params : { [ name : string ] : string | undefined } }
21922175 : 'scoped' extends Type
2193- ? { params : Record < string , string > }
2176+ ? { params : { [ name : string ] : string | undefined } }
21942177 : { } ,
21952178 Singleton &
21962179 ( 'global' extends Type
@@ -2434,9 +2417,9 @@ export default class Elysia<
24342417 Ephemeral [ 'standaloneSchema' ] &
24352418 Volatile [ 'standaloneSchema' ] &
24362419 'global' extends Type
2437- ? { params : Record < string , string > }
2420+ ? { params : { [ name : string ] : string | undefined } }
24382421 : 'scoped' extends Type
2439- ? { params : Record < string , string > }
2422+ ? { params : { [ name : string ] : string | undefined } }
24402423 : { } ,
24412424 Singleton &
24422425 ( 'global' extends Type
@@ -2554,9 +2537,9 @@ export default class Elysia<
25542537 Ephemeral [ 'standaloneSchema' ] &
25552538 Volatile [ 'standaloneSchema' ] &
25562539 'global' extends Type
2557- ? { params : Record < string , string > }
2540+ ? { params : { [ name : string ] : string | undefined } }
25582541 : 'scoped' extends Type
2559- ? { params : Record < string , string > }
2542+ ? { params : { [ name : string ] : string | undefined } }
25602543 : { } ,
25612544 Singleton &
25622545 ( 'global' extends Type
@@ -2725,9 +2708,9 @@ export default class Elysia<
27252708 Ephemeral [ 'standaloneSchema' ] &
27262709 Volatile [ 'standaloneSchema' ] &
27272710 'global' extends Type
2728- ? { params : Record < string , string > }
2711+ ? { params : { [ name : string ] : string | undefined } }
27292712 : 'scoped' extends Type
2730- ? { params : Record < string , string > }
2713+ ? { params : { [ name : string ] : string | undefined } }
27312714 : { } ,
27322715 Singleton &
27332716 ( 'global' extends Type
@@ -2838,9 +2821,9 @@ export default class Elysia<
28382821 Ephemeral [ 'standaloneSchema' ] &
28392822 Volatile [ 'standaloneSchema' ] &
28402823 'global' extends Type
2841- ? { params : Record < string , string > }
2824+ ? { params : { [ name : string ] : string | undefined } }
28422825 : 'scoped' extends Type
2843- ? { params : Record < string , string > }
2826+ ? { params : { [ name : string ] : string | undefined } }
28442827 : { } ,
28452828 Singleton &
28462829 ( 'global' extends Type
@@ -5954,6 +5937,7 @@ export default class Elysia<
59545937 Input ,
59555938 // @ts -ignore
59565939 Schema & MacroContext ,
5940+ Decorator ,
59575941 Definitions [ 'error' ] ,
59585942 keyof Metadata [ 'parser' ]
59595943 >
@@ -6058,6 +6042,7 @@ export default class Elysia<
60586042 Input ,
60596043 // @ts -ignore
60606044 Schema & MacroContext ,
6045+ Decorator ,
60616046 Definitions [ 'error' ] ,
60626047 keyof Metadata [ 'parser' ]
60636048 >
@@ -6162,6 +6147,7 @@ export default class Elysia<
61626147 Input ,
61636148 // @ts -ignore
61646149 Schema & MacroContext ,
6150+ Decorator ,
61656151 Definitions [ 'error' ] ,
61666152 keyof Metadata [ 'parser' ]
61676153 >
@@ -6266,6 +6252,7 @@ export default class Elysia<
62666252 Input ,
62676253 // @ts -ignore
62686254 Schema & MacroContext ,
6255+ Decorator ,
62696256 Definitions [ 'error' ] ,
62706257 keyof Metadata [ 'parser' ]
62716258 >
@@ -6370,6 +6357,7 @@ export default class Elysia<
63706357 Input ,
63716358 // @ts -ignore
63726359 Schema & MacroContext ,
6360+ Decorator ,
63736361 Definitions [ 'error' ] ,
63746362 keyof Metadata [ 'parser' ]
63756363 >
@@ -6474,6 +6462,7 @@ export default class Elysia<
64746462 Input ,
64756463 // @ts -ignore
64766464 Schema & MacroContext ,
6465+ Decorator ,
64776466 Definitions [ 'error' ] ,
64786467 keyof Metadata [ 'parser' ]
64796468 >
@@ -6578,6 +6567,7 @@ export default class Elysia<
65786567 Input ,
65796568 // @ts -ignore
65806569 Schema & MacroContext ,
6570+ Decorator ,
65816571 Definitions [ 'error' ] ,
65826572 keyof Metadata [ 'parser' ]
65836573 >
@@ -6684,6 +6674,7 @@ export default class Elysia<
66846674 Input ,
66856675 // @ts -ignore
66866676 Schema & MacroContext ,
6677+ Decorator ,
66876678 Definitions [ 'error' ] ,
66886679 keyof Metadata [ 'parser' ]
66896680 > & {
@@ -7458,9 +7449,9 @@ export default class Elysia<
74587449 Ephemeral [ 'standaloneSchema' ] &
74597450 Volatile [ 'standaloneSchema' ] &
74607451 'global' extends Type
7461- ? { params : Record < string , string > }
7452+ ? { params : { [ name : string ] : string | undefined } }
74627453 : 'scoped' extends Type
7463- ? { params : Record < string , string > }
7454+ ? { params : { [ name : string ] : string | undefined } }
74647455 : { } ,
74657456 Singleton &
74667457 ( 'global' extends Type
0 commit comments