Skip to content

Commit

Permalink
fix(dts): also add empty line for default description
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jan 13, 2023
1 parent 5255259 commit d4034c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generator/dts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function generateJSDoc(schema: Schema, opts: GenerateTypesOptions): string[] {
if (schema.description) {
buff.push(schema.description, "");
} else if (opts.defaultDescrption && schema.type !== "object") {
buff.push(opts.defaultDescrption);
buff.push(opts.defaultDescrption, "");
}

if (
Expand Down

0 comments on commit d4034c1

Please sign in to comment.