Update packages/mermaid/src/diagrams/class/classTypes.ts

Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
Justin Greywolf 2023-07-02 18:11:25 -07:00 committed by GitHub
parent 8435330534
commit c001520e54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@ export class ClassMember {
getDisplayDetails() { getDisplayDetails() {
let displayText = this.visibility + parseGenericTypes(this.id); let displayText = this.visibility + parseGenericTypes(this.id);
if (this.memberType === 'method') { if (this.memberType === 'method') {
displayText += '(' + parseGenericTypes(this.parameters.trim()) + ')'; displayText += `(${parseGenericTypes(this.parameters.trim())})`;
if (this.returnType) { if (this.returnType) {
displayText += ' : ' + parseGenericTypes(this.returnType); displayText += ' : ' + parseGenericTypes(this.returnType);
} }