mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 21:09:50 +02:00
Update packages/mermaid/src/diagrams/class/classTypes.ts
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user