@@ -63,7 +63,7 @@ export function generateDocSchema (schema: Schema, config: Config, pkg: Package)
6363 }
6464 // make operations into methods
6565 const operationMethods = operations . map ( operation => {
66- const returns = { type : getReturnType ( operation , schema , config ) , description : getReturnDescription ( operation , schema , config ) } ;
66+ const returns = { type : getReturnType ( operation , schema , config ) , description : getReturnDescription ( operation ) } ;
6767 const throws = getThrows ( operation , schema , config ) . map ( type => ( { type} ) ) ;
6868 const pathParams = Object . entries ( operation . parameters . path ?? { } ) . map ( ( [ name , parameter ] ) => new DocSchema . Parameter ( name , parameter . type , parameter . description , parameter . required , parameter . default ) ) ;
6969 const queryParams = Object . entries ( operation . parameters . query ?? { } ) . map ( ( [ name , parameter ] ) => new DocSchema . Parameter ( name , parameter . type , parameter . description , parameter . required , parameter . default ) ) ;
@@ -233,8 +233,8 @@ export function generateMarkdownDocs (config: Config, schema: Schema, docSchema:
233233export async function generateReadme ( docMD : string , config : Config , pkg : Package ) : Promise < void > {
234234 const template = await fs . readFile ( "README.template.md" , "utf8" ) ;
235235 // check if project builds successfully
236- const buildStatus = await new Promise ( ( resolve , reject ) => {
237- child_process . exec ( "npm run build" , ( error , stdout , stderr ) => {
236+ const buildStatus = await new Promise ( ( resolve ) => {
237+ child_process . exec ( "npm run build" , ( error ) => {
238238 resolve ( ! error ) ;
239239 } ) ;
240240 } ) ;
0 commit comments