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:10:53 -07:00 committed by GitHub
parent 1d391d9408
commit 8435330534
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,13 +19,13 @@ export interface ClassNode {
export class ClassMember {
id!: string;
cssStyle!: string;
memberType!: string;
memberType!: 'method' | 'attribute';
visibility!: string;
classifier!: string;
parameters!: string;
returnType!: string;
constructor(input: string, memberType: string) {
constructor(input: string, memberType: 'method' | 'attribute') {
this.memberType = memberType;
this.visibility = '';
this.classifier = '';