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 8c6d7a7 commit 7fc1f68Copy full SHA for 7fc1f68
src/utils/getPropertyName.js
@@ -19,7 +19,7 @@ import getNameOrValue from './getNameOrValue';
19
*/
20
export default function getPropertyName(propertyPath: NodePath): string {
21
if (propertyPath.node.computed) {
22
- throw new TypeError('Propery name must be an Identifier or a Literal');
+ throw new TypeError('Property name must be an Identifier or a Literal');
23
}
24
25
return getNameOrValue(propertyPath.get('key'), false);
0 commit comments