Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added test for typeOfKeyword argument
  • Loading branch information
Tiberiu02 committed Oct 10, 2022
commit 056ae68ea43b2929021e0b0c0cf2e896115e6e6e
2 changes: 1 addition & 1 deletion typescript-json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ export class JsonSchemaGenerator {
// {} is TypeLiteral with no members. Need special case because it doesn't have declarations.
definition.type = "object";
definition.properties = {};
} else if (ts.isFunctionLike(node)) {
} else if (this.args.typeOfKeyword && ts.isFunctionLike(node)) {
this.getFunctionDefinition(typ, definition);
} else {
this.getClassDefinition(typ, definition);
Expand Down