Skip to content

Commit b35f5d5

Browse files
committed
fix: Correctly retrieve type name from GenericTypeAnnotation in mapperFor function
1 parent 8d9e578 commit b35f5d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/buildConfigDefinitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function mapperFor(elt, t) {
158158
} else if (t.isObjectTypeAnnotation(elt)) {
159159
return wrap(t.identifier('objectParser'));
160160
} else if (t.isGenericTypeAnnotation(elt)) {
161-
const type = elt.id.name;
161+
const type = elt.typeAnnotation.id.name;
162162
if (type == 'Adapter') {
163163
return wrap(t.identifier('moduleOrObjectParser'));
164164
}

0 commit comments

Comments
 (0)