File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " elysia" ,
3
3
"description" : " Ergonomic Framework for Human" ,
4
- "version" : " 1.3.0-exp.70 " ,
4
+ "version" : " 1.3.0-exp.71 " ,
5
5
"author" : {
6
6
"name" : " saltyAom" ,
7
7
"url" : " https://github.com/SaltyAom" ,
Original file line number Diff line number Diff line change @@ -307,6 +307,10 @@ export default class Elysia<
307
307
return this . router . history
308
308
}
309
309
310
+ protected getGlobalDefinitions ( ) {
311
+ return this . definitions
312
+ }
313
+
310
314
protected inference : Sucrose . Inference = {
311
315
body : false ,
312
316
cookie : false ,
@@ -3929,6 +3933,8 @@ export default class Elysia<
3929
3933
plugin . getServer = ( ) => this . getServer ( )
3930
3934
plugin . getGlobalRoutes = ( ) =>
3931
3935
this . getGlobalRoutes ( )
3936
+ plugin . getGlobalDefinitions = ( ) =>
3937
+ this . getGlobalDefinitions ( )
3932
3938
3933
3939
/**
3934
3940
* Model and error is required for Swagger generation
@@ -3997,6 +4003,7 @@ export default class Elysia<
3997
4003
plugin . getParent = ( ) => this as any
3998
4004
plugin . getServer = ( ) => this . getServer ( )
3999
4005
plugin . getGlobalRoutes = ( ) => this . getGlobalRoutes ( )
4006
+ plugin . getGlobalDefinitions = ( ) => this . getGlobalDefinitions ( )
4000
4007
4001
4008
// if (this.config.sanitize) {
4002
4009
// const isArray = (v: unknown): v is any[] => Array.isArray(v)
You can’t perform that action at this time.
0 commit comments