Skip to content

Commit 87e681a

Browse files
committed
Don't infer array types from js types
1 parent 611bac5 commit 87e681a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/types.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ export const escapeIdentifier = function escape(str) {
225225
export const inferType = function inferType(x) {
226226
return x instanceof Parameter
227227
? x.type
228-
: Array.isArray(x)
229-
? inferType(x[0])
230-
: 0
228+
: 0
231229
}
232230

233231
const escapeBackslash = /\\/g

0 commit comments

Comments
 (0)