File tree 2 files changed +6
-22
lines changed
2 files changed +6
-22
lines changed Original file line number Diff line number Diff line change @@ -46,16 +46,8 @@ export class OpenApiBuilder {
46
46
return JSON . stringify ( this . rootDoc , replacer , space ) ;
47
47
}
48
48
getSpecAsYaml (
49
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
- replacer ?: any [ ] | ( ( key : any , value : any ) => unknown ) | null ,
51
- options ?:
52
- | string
53
- | number
54
- | ( yaml . DocumentOptions &
55
- yaml . SchemaOptions &
56
- yaml . ParseOptions &
57
- yaml . CreateNodeOptions &
58
- yaml . ToStringOptions )
49
+ replacer ?: Parameters < typeof yaml . stringify > [ 1 ] ,
50
+ options ?: Parameters < typeof yaml . stringify > [ 2 ]
59
51
) : string {
60
52
return yaml . stringify ( this . rootDoc , replacer , options ) ;
61
53
}
Original file line number Diff line number Diff line change @@ -45,17 +45,9 @@ export class OpenApiBuilder {
45
45
) : string {
46
46
return JSON . stringify ( this . rootDoc , replacer , space ) ;
47
47
}
48
- getSpecAsYaml (
49
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
50
- replacer ?: any [ ] | ( ( key : any , value : any ) => unknown ) | null ,
51
- options ?:
52
- | string
53
- | number
54
- | ( yaml . DocumentOptions &
55
- yaml . SchemaOptions &
56
- yaml . ParseOptions &
57
- yaml . CreateNodeOptions &
58
- yaml . ToStringOptions )
48
+ getSpecAsYaml (
49
+ replacer ?: Parameters < typeof yaml . stringify > [ 1 ] ,
50
+ options ?: Parameters < typeof yaml . stringify > [ 2 ]
59
51
) : string {
60
52
return yaml . stringify ( this . rootDoc , replacer , options ) ;
61
53
}
@@ -193,4 +185,4 @@ export class OpenApiBuilder {
193
185
this . rootDoc . webhooks [ webhook ] = webhookItem ;
194
186
return this ;
195
187
}
196
- }
188
+ }
You can’t perform that action at this time.
0 commit comments