Skip to content

Commit

Permalink
Fix type-utils > isUnsafeAssignment
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Jul 26, 2022
1 parent 1a705ee commit 72a7436
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/type-utils/src/isUnsafeAssignment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function isUnsafeAssignment(
senderNode.callee.type === AST_NODE_TYPES.Identifier &&
senderNode.callee.name === 'Map' &&
senderNode.arguments.length === 0 &&
senderNode.typeParameters == null
senderNode.typeArguments == null
) {
// special case to handle `new Map()`
// unfortunately Map's default empty constructor is typed to return `Map<any, any>` :(
Expand Down

0 comments on commit 72a7436

Please sign in to comment.