Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
netanel-mce committed Aug 23, 2023
1 parent 486e700 commit 5bb33f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions typescript-json-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,7 @@ export class JsonSchemaGenerator {
definition.patternProperties = {
[NUMERIC_INDEX_PATTERN]: this.getTypeDefinition(arrayType),
};
const otherMembers = Array.from((propertyType as any).members)?.filter((member: [string]) => member[0] !== "__index") as [string, ts.Symbol][];
if (otherMembers.length) {
if (!!Array.from((<any>propertyType).members)?.find((member: [string]) => member[0] !== "__index")) {
this.getClassDefinition(propertyType, definition);
}
} else {
Expand Down

0 comments on commit 5bb33f4

Please sign in to comment.