Skip to content

Commit

Permalink
fix: plural drafts cap-js#163
Browse files Browse the repository at this point in the history
  • Loading branch information
geert-janklaps authored Apr 4, 2024
1 parent 6d5b3f8 commit 5525dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class Visitor {
}
// plural can not be a type alias to $singular[] but needs to be a proper class instead,
// so it can get passed as value to CQL functions.
buffer.add(`export class ${plural} extends Array<${singular}> {${this.#staticClassContents(singular, entity).join('\n')}}`)
buffer.add(`export class ${plural} extends Array<${singular}> {${this.#staticClassContents(plural, entity).join('\n')}}`)
buffer.add(overrideNameProperty(plural, entity.name))
}
buffer.add('')
Expand Down

0 comments on commit 5525dc2

Please sign in to comment.