1
1
import { Memoirist } from 'memoirist'
2
2
import {
3
+ Kind ,
3
4
type TObject ,
4
5
type Static ,
5
6
type TSchema ,
6
7
type TModule ,
7
8
type TRef ,
8
- type TProperties ,
9
- Kind
9
+ type TProperties
10
10
} from '@sinclair/typebox'
11
11
12
12
import type { Context } from './context'
@@ -4692,14 +4692,15 @@ export default class Elysia<
4692
4692
Ephemeral [ 'standaloneSchema' ] &
4693
4693
Volatile [ 'standaloneSchema' ] ,
4694
4694
const Macro extends Metadata [ 'macro' ] ,
4695
+ const Decorator extends Singleton & {
4696
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4697
+ resolve : Ephemeral [ 'resolve' ] &
4698
+ Volatile [ 'resolve' ] &
4699
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
4700
+ } ,
4695
4701
const Handle extends InlineHandler <
4696
4702
NoInfer < Schema > ,
4697
- Singleton & {
4698
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4699
- resolve : Ephemeral [ 'resolve' ] &
4700
- Volatile [ 'resolve' ] &
4701
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4702
- } ,
4703
+ Decorator ,
4703
4704
JoinPath < BasePath , Path >
4704
4705
>
4705
4706
> (
@@ -4708,12 +4709,7 @@ export default class Elysia<
4708
4709
hook ?: LocalHook <
4709
4710
LocalSchema ,
4710
4711
Schema ,
4711
- Singleton & {
4712
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4713
- resolve : Ephemeral [ 'resolve' ] &
4714
- Volatile [ 'resolve' ] &
4715
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4716
- } ,
4712
+ Decorator ,
4717
4713
Definitions [ 'error' ] ,
4718
4714
Macro ,
4719
4715
keyof Metadata [ 'parser' ]
@@ -4782,14 +4778,15 @@ export default class Elysia<
4782
4778
Ephemeral [ 'standaloneSchema' ] &
4783
4779
Volatile [ 'standaloneSchema' ] ,
4784
4780
const Macro extends Metadata [ 'macro' ] ,
4781
+ const Decorator extends Singleton & {
4782
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4783
+ resolve : Ephemeral [ 'resolve' ] &
4784
+ Volatile [ 'resolve' ] &
4785
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
4786
+ } ,
4785
4787
const Handle extends InlineHandler <
4786
4788
NoInfer < Schema > ,
4787
- Singleton & {
4788
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4789
- resolve : Ephemeral [ 'resolve' ] &
4790
- Volatile [ 'resolve' ] &
4791
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4792
- } ,
4789
+ Decorator ,
4793
4790
JoinPath < BasePath , Path >
4794
4791
>
4795
4792
> (
@@ -4798,12 +4795,7 @@ export default class Elysia<
4798
4795
hook ?: LocalHook <
4799
4796
LocalSchema ,
4800
4797
Schema ,
4801
- Singleton & {
4802
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4803
- resolve : Ephemeral [ 'resolve' ] &
4804
- Volatile [ 'resolve' ] &
4805
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4806
- } ,
4798
+ Decorator ,
4807
4799
Definitions [ 'error' ] ,
4808
4800
Macro ,
4809
4801
keyof Metadata [ 'parser' ]
@@ -4872,14 +4864,15 @@ export default class Elysia<
4872
4864
Ephemeral [ 'standaloneSchema' ] &
4873
4865
Volatile [ 'standaloneSchema' ] ,
4874
4866
const Macro extends Metadata [ 'macro' ] ,
4867
+ const Decorator extends Singleton & {
4868
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4869
+ resolve : Ephemeral [ 'resolve' ] &
4870
+ Volatile [ 'resolve' ] &
4871
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
4872
+ } ,
4875
4873
const Handle extends InlineHandler <
4876
4874
NoInfer < Schema > ,
4877
- Singleton & {
4878
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4879
- resolve : Ephemeral [ 'resolve' ] &
4880
- Volatile [ 'resolve' ] &
4881
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4882
- } ,
4875
+ Decorator ,
4883
4876
JoinPath < BasePath , Path >
4884
4877
>
4885
4878
> (
@@ -4888,12 +4881,7 @@ export default class Elysia<
4888
4881
hook ?: LocalHook <
4889
4882
LocalSchema ,
4890
4883
Schema ,
4891
- Singleton & {
4892
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4893
- resolve : Ephemeral [ 'resolve' ] &
4894
- Volatile [ 'resolve' ] &
4895
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4896
- } ,
4884
+ Decorator ,
4897
4885
Definitions [ 'error' ] ,
4898
4886
Macro ,
4899
4887
keyof Metadata [ 'parser' ]
@@ -4962,14 +4950,15 @@ export default class Elysia<
4962
4950
Ephemeral [ 'standaloneSchema' ] &
4963
4951
Volatile [ 'standaloneSchema' ] ,
4964
4952
const Macro extends Metadata [ 'macro' ] ,
4953
+ const Decorator extends Singleton & {
4954
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4955
+ resolve : Ephemeral [ 'resolve' ] &
4956
+ Volatile [ 'resolve' ] &
4957
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
4958
+ } ,
4965
4959
const Handle extends InlineHandler <
4966
4960
NoInfer < Schema > ,
4967
- Singleton & {
4968
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4969
- resolve : Ephemeral [ 'resolve' ] &
4970
- Volatile [ 'resolve' ] &
4971
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4972
- } ,
4961
+ Decorator ,
4973
4962
JoinPath < BasePath , Path >
4974
4963
>
4975
4964
> (
@@ -4978,12 +4967,7 @@ export default class Elysia<
4978
4967
hook ?: LocalHook <
4979
4968
LocalSchema ,
4980
4969
Schema ,
4981
- Singleton & {
4982
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
4983
- resolve : Ephemeral [ 'resolve' ] &
4984
- Volatile [ 'resolve' ] &
4985
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
4986
- } ,
4970
+ Decorator ,
4987
4971
Definitions [ 'error' ] ,
4988
4972
Macro ,
4989
4973
keyof Metadata [ 'parser' ]
@@ -5052,14 +5036,15 @@ export default class Elysia<
5052
5036
Ephemeral [ 'standaloneSchema' ] &
5053
5037
Volatile [ 'standaloneSchema' ] ,
5054
5038
const Macro extends Metadata [ 'macro' ] ,
5039
+ const Decorator extends Singleton & {
5040
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5041
+ resolve : Ephemeral [ 'resolve' ] &
5042
+ Volatile [ 'resolve' ] &
5043
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
5044
+ } ,
5055
5045
const Handle extends InlineHandler <
5056
5046
NoInfer < Schema > ,
5057
- Singleton & {
5058
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5059
- resolve : Ephemeral [ 'resolve' ] &
5060
- Volatile [ 'resolve' ] &
5061
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5062
- } ,
5047
+ Decorator ,
5063
5048
JoinPath < BasePath , Path >
5064
5049
>
5065
5050
> (
@@ -5068,12 +5053,7 @@ export default class Elysia<
5068
5053
hook ?: LocalHook <
5069
5054
LocalSchema ,
5070
5055
Schema ,
5071
- Singleton & {
5072
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5073
- resolve : Ephemeral [ 'resolve' ] &
5074
- Volatile [ 'resolve' ] &
5075
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5076
- } ,
5056
+ Decorator ,
5077
5057
Definitions [ 'error' ] ,
5078
5058
Macro ,
5079
5059
keyof Metadata [ 'parser' ]
@@ -5142,14 +5122,15 @@ export default class Elysia<
5142
5122
Ephemeral [ 'standaloneSchema' ] &
5143
5123
Volatile [ 'standaloneSchema' ] ,
5144
5124
const Macro extends Metadata [ 'macro' ] ,
5125
+ const Decorator extends Singleton & {
5126
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5127
+ resolve : Ephemeral [ 'resolve' ] &
5128
+ Volatile [ 'resolve' ] &
5129
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
5130
+ } ,
5145
5131
const Handle extends InlineHandler <
5146
5132
NoInfer < Schema > ,
5147
- Singleton & {
5148
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5149
- resolve : Ephemeral [ 'resolve' ] &
5150
- Volatile [ 'resolve' ] &
5151
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5152
- } ,
5133
+ Decorator ,
5153
5134
JoinPath < BasePath , Path >
5154
5135
>
5155
5136
> (
@@ -5158,12 +5139,7 @@ export default class Elysia<
5158
5139
hook ?: LocalHook <
5159
5140
LocalSchema ,
5160
5141
Schema ,
5161
- Singleton & {
5162
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5163
- resolve : Ephemeral [ 'resolve' ] &
5164
- Volatile [ 'resolve' ] &
5165
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5166
- } ,
5142
+ Decorator ,
5167
5143
Definitions [ 'error' ] ,
5168
5144
Macro ,
5169
5145
keyof Metadata [ 'parser' ]
@@ -5232,14 +5208,15 @@ export default class Elysia<
5232
5208
Ephemeral [ 'standaloneSchema' ] &
5233
5209
Volatile [ 'standaloneSchema' ] ,
5234
5210
const Macro extends Metadata [ 'macro' ] ,
5211
+ const Decorator extends Singleton & {
5212
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5213
+ resolve : Ephemeral [ 'resolve' ] &
5214
+ Volatile [ 'resolve' ] &
5215
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
5216
+ } ,
5235
5217
const Handle extends InlineHandler <
5236
5218
NoInfer < Schema > ,
5237
- Singleton & {
5238
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5239
- resolve : Ephemeral [ 'resolve' ] &
5240
- Volatile [ 'resolve' ] &
5241
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5242
- } ,
5219
+ Decorator ,
5243
5220
JoinPath < BasePath , Path >
5244
5221
>
5245
5222
> (
@@ -5248,12 +5225,7 @@ export default class Elysia<
5248
5225
hook ?: LocalHook <
5249
5226
LocalSchema ,
5250
5227
Schema ,
5251
- Singleton & {
5252
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5253
- resolve : Ephemeral [ 'resolve' ] &
5254
- Volatile [ 'resolve' ] &
5255
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5256
- } ,
5228
+ Decorator ,
5257
5229
Definitions [ 'error' ] ,
5258
5230
Macro ,
5259
5231
keyof Metadata [ 'parser' ]
@@ -5323,14 +5295,15 @@ export default class Elysia<
5323
5295
Ephemeral [ 'standaloneSchema' ] &
5324
5296
Volatile [ 'standaloneSchema' ] ,
5325
5297
const Macro extends Metadata [ 'macro' ] ,
5298
+ const Decorator extends Singleton & {
5299
+ derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5300
+ resolve : Ephemeral [ 'resolve' ] &
5301
+ Volatile [ 'resolve' ] &
5302
+ MacroToContext < Metadata [ 'macroFn' ] , Macro >
5303
+ } ,
5326
5304
const Handle extends InlineHandler <
5327
5305
NoInfer < Schema > ,
5328
- Singleton & {
5329
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5330
- resolve : Ephemeral [ 'resolve' ] &
5331
- Volatile [ 'resolve' ] &
5332
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5333
- } ,
5306
+ Decorator ,
5334
5307
JoinPath < BasePath , Path >
5335
5308
>
5336
5309
> (
@@ -5340,12 +5313,7 @@ export default class Elysia<
5340
5313
hook ?: LocalHook <
5341
5314
LocalSchema ,
5342
5315
Schema ,
5343
- Singleton & {
5344
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5345
- resolve : Ephemeral [ 'resolve' ] &
5346
- Volatile [ 'resolve' ] &
5347
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5348
- } ,
5316
+ Decorator ,
5349
5317
Definitions [ 'error' ] ,
5350
5318
Macro ,
5351
5319
keyof Metadata [ 'parser' ]
@@ -5419,17 +5387,7 @@ export default class Elysia<
5419
5387
const Macro extends Metadata [ 'macro' ]
5420
5388
> (
5421
5389
path : Path ,
5422
- options : WSLocalHook <
5423
- LocalSchema ,
5424
- Schema ,
5425
- Singleton & {
5426
- derive : Ephemeral [ 'derive' ] & Volatile [ 'derive' ]
5427
- resolve : Ephemeral [ 'resolve' ] &
5428
- Volatile [ 'resolve' ] &
5429
- MacroToContext < Metadata [ 'macroFn' ] , Macro >
5430
- } ,
5431
- Macro
5432
- >
5390
+ options : WSLocalHook < LocalSchema , Schema , Decorator , Macro >
5433
5391
) : Elysia <
5434
5392
BasePath ,
5435
5393
Singleton ,
0 commit comments