We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37eaacf commit 6875e86Copy full SHA for 6875e86
src/utils/getPropertyName.js
@@ -24,7 +24,7 @@ export default function getPropertyName(propertyPath: NodePath): string {
24
if (types.ObjectTypeSpreadProperty.check(propertyPath.node)) {
25
return getNameOrValue(propertyPath.get('argument').get('id'), false);
26
} else if (propertyPath.node.computed) {
27
- throw new TypeError('Propery name must be an Identifier or a Literal');
+ throw new TypeError('Property name must be an Identifier or a Literal');
28
}
29
30
return getNameOrValue(propertyPath.get('key'), false);
0 commit comments