-
-
Notifications
You must be signed in to change notification settings - Fork 211
Open
Description
Rule: https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/no-actions-hash.md
Failing on code like:
class MyComponent {
declare actions: typeof dispatchToActions;
}
class MyComponent {
actions!: typeof dispatchToActions;
}
Workaround:
class MyComponent {
['actions']!: typeof dispatchToActions;
}
Error: TypeError: Cannot read properties of null (reading 'type')
function isActionsProp(property) {
return (
types.isIdentifier(property.key) &&
property.key.name === 'actions' &&
types.isObjectExpression(property.value) // here property value is null
);
}
Metadata
Metadata
Assignees
Labels
No labels