@@ -427,12 +427,12 @@ export type UnwrapSchema<
427
427
infer NamedSchema extends TAnySchema
428
428
>
429
429
? StaticDecode < NamedSchema > [ ]
430
- : TImport < Definitions , TrimArrayName < Schema > > [ 'static' ] [ ]
430
+ : StaticDecode < TImport < Definitions , TrimArrayName < Schema > > > [ ]
431
431
: Schema extends string
432
432
? Definitions extends keyof Schema
433
433
? // @ts -ignore Definitions is always a Record<string, TAnySchema>
434
434
StaticDecode < NamedSchema >
435
- : TImport < Definitions , Schema > [ 'static' ]
435
+ : StaticDecode < TImport < Definitions , Schema > >
436
436
: unknown
437
437
438
438
export type UnwrapBodySchema <
@@ -443,31 +443,35 @@ export type UnwrapBodySchema<
443
443
: Schema extends TSchema
444
444
? Schema extends OptionalField
445
445
? Partial <
446
+ StaticDecode <
447
+ TImport <
448
+ Definitions & {
449
+ readonly __elysia : Schema
450
+ } ,
451
+ '__elysia'
452
+ >
453
+ >
454
+ > | null
455
+ : StaticDecode <
446
456
TImport <
447
457
Definitions & {
448
458
readonly __elysia : Schema
449
459
} ,
450
460
'__elysia'
451
- > [ 'static' ]
452
- > | null
453
- : TImport <
454
- Definitions & {
455
- readonly __elysia : Schema
456
- } ,
457
- '__elysia'
458
- > [ 'static' ]
461
+ >
462
+ >
459
463
: Schema extends `${infer Key } []`
460
464
? Definitions extends Record <
461
465
Key ,
462
466
infer NamedSchema extends TAnySchema
463
467
>
464
468
? StaticDecode < NamedSchema > [ ]
465
- : TImport < Definitions , TrimArrayName < Schema > > [ 'static' ] [ ]
469
+ : StaticDecode < TImport < Definitions , TrimArrayName < Schema > > > [ ]
466
470
: Schema extends string
467
471
? Definitions extends keyof Schema
468
472
? // @ts -ignore Definitions is always a Record<string, TAnySchema>
469
473
StaticDecode < NamedSchema >
470
- : TImport < Definitions , Schema > [ 'static' ]
474
+ : StaticDecode < TImport < Definitions , Schema > >
471
475
: unknown
472
476
473
477
export interface UnwrapRoute <
0 commit comments