@@ -228,26 +228,28 @@ class CodeGenProcess {
228228 return {
229229 utils : {
230230 Ts : this . config . Ts ,
231- formatDescription : this . schemaParser . schemaFormatters . formatDescription ,
231+ formatDescription : this . schemaParser . schemaFormatters . formatDescription . bing (
232+ this . schemaParser . schemaFormatters ,
233+ ) ,
232234 internalCase : internalCase ,
233235 classNameCase : pascalCase ,
234236 pascalCase : pascalCase ,
235- getInlineParseContent : this . schemaParser . getInlineParseContent ,
236- getParseContent : this . schemaParser . getParseContent ,
237- getComponentByRef : this . schemaComponentMap . get ,
238- parseSchema : this . schemaParser . parseSchema ,
239- checkAndAddNull : this . schemaParser . schemaUtils . safeAddNullToType ,
240- safeAddNullToType : this . schemaParser . schemaUtils . safeAddNullToType ,
241- isNeedToAddNull : this . schemaParser . schemaUtils . isNullMissingInType ,
242- inlineExtraFormatters : this . schemaParser . schemaFormatters . inline ,
243- formatters : this . schemaParser . schemaFormatters . base ,
244- formatModelName : this . typeName . format ,
237+ getInlineParseContent : this . schemaParser . getInlineParseContent . bind ( this . schemaParser ) ,
238+ getParseContent : this . schemaParser . getParseContent . bind ( this . schemaParser ) ,
239+ getComponentByRef : this . schemaComponentMap . get . bind ( this . schemaComponentMap ) ,
240+ parseSchema : this . schemaParser . parseSchema . bind ( this . schemaParser ) ,
241+ checkAndAddNull : this . schemaParser . schemaUtils . safeAddNullToType . bind ( this . schemaParser . schemaUtils ) ,
242+ safeAddNullToType : this . schemaParser . schemaUtils . safeAddNullToType . bind ( this . schemaParser . schemaUtils ) ,
243+ isNeedToAddNull : this . schemaParser . schemaUtils . isNullMissingInType . bind ( this . schemaParser . schemaUtils ) ,
244+ inlineExtraFormatters : this . schemaParser . schemaFormatters . inline . bind ( this . schemaParser . schemaFormatters ) ,
245+ formatters : this . schemaParser . schemaFormatters . base . bind ( this . schemaParser . schemaFormatters ) ,
246+ formatModelName : this . typeName . format . bind ( this . typeName ) ,
245247 fmtToJSDocLine : function fmtToJSDocLine ( line , { eol = true } ) {
246248 return ` * ${ line } ${ eol ? "\n" : "" } ` ;
247249 } ,
248250 NameResolver : NameResolver ,
249251 _,
250- require : this . templates . requireFnFromTemplate ,
252+ require : this . templates . requireFnFromTemplate . bind ( this . templates ) ,
251253 } ,
252254 config : this . config ,
253255 } ;
0 commit comments