Skip to content

Commit 5324f56

Browse files
committed
fix: Correct the order of data type check
1 parent 227e582 commit 5324f56

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/PropertyDocumentMixin.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ const mxFunction = (base) => {
124124
if (this._hasType(range, rs.UnionShape)) {
125125
return 'Union';
126126
}
127+
if (this._hasType(range, rs.TupleShape)) {
128+
return 'Tuple';
129+
}
127130
if (this._hasType(range, rs.ArrayShape)) {
128131
return 'Array';
129132
}
@@ -136,21 +139,18 @@ const mxFunction = (base) => {
136139
if (this._hasType(range, rs.NilShape)) {
137140
return 'Null';
138141
}
139-
if (this._hasType(range, rs.AnyShape)) {
140-
return 'Any';
141-
}
142142
if (this._hasType(range, rs.MatrixShape)) {
143143
return 'Matrix';
144144
}
145-
if (this._hasType(range, rs.TupleShape)) {
146-
return 'Tuple';
147-
}
148145
if (this._hasType(range, rs.UnionShape)) {
149146
return 'Union';
150147
}
151148
if (this._hasType(range, rs.RecursiveShape)) {
152149
return 'Recursive';
153150
}
151+
if (this._hasType(range, rs.AnyShape)) {
152+
return 'Any';
153+
}
154154
return 'Unknown type';
155155
}
156156

0 commit comments

Comments
 (0)