Skip to content

Commit

Permalink
fix: Correct the order of data type check
Browse files Browse the repository at this point in the history
  • Loading branch information
deiteris committed Aug 22, 2021
1 parent 227e582 commit 5324f56
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PropertyDocumentMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ const mxFunction = (base) => {
if (this._hasType(range, rs.UnionShape)) {
return 'Union';
}
if (this._hasType(range, rs.TupleShape)) {
return 'Tuple';
}
if (this._hasType(range, rs.ArrayShape)) {
return 'Array';
}
Expand All @@ -136,21 +139,18 @@ const mxFunction = (base) => {
if (this._hasType(range, rs.NilShape)) {
return 'Null';
}
if (this._hasType(range, rs.AnyShape)) {
return 'Any';
}
if (this._hasType(range, rs.MatrixShape)) {
return 'Matrix';
}
if (this._hasType(range, rs.TupleShape)) {
return 'Tuple';
}
if (this._hasType(range, rs.UnionShape)) {
return 'Union';
}
if (this._hasType(range, rs.RecursiveShape)) {
return 'Recursive';
}
if (this._hasType(range, rs.AnyShape)) {
return 'Any';
}
return 'Unknown type';
}

Expand Down

0 comments on commit 5324f56

Please sign in to comment.