import * as Types from "@himenon/openapi-typescript-code-generator/types" ; interface Option { showLog ? : boolean ; } const generator = ( payload , option ) : string [ ] => { if ( option && option . showLog ) { console . log ( "show log message" ) ; } return [ "Hello world" ] ; } ; const customGenerator = { generator : generator , option : { } , } ;