Skip to content

refactor(atomic): ensure every component that uses ValidatePropsController implements an interface that has the error property #6828

@fbeaudoincoveo

Description

@fbeaudoincoveo

Task Description

Every component that uses ValidatePropsController should implement the LitElementWithError interface (or another interface that has the "error" property, such as BaseInitializableComponent, InitializableComponent, or SearchBoxSuggestionsComponent.

The important thing is that when you are using the ValidatePropsController in a component, that component must have the @state() error!: Error.

Acceptance Criteria

  • Every component that uses ValidatePropsController has a @state() error!: Error property
  • Components that use the ValidatePropsController and do not already extend an interface that has the error property now extend the LitElementWithError interface
  • No other code has been modified
  • All tests still pass

Technical Notes

No response

Jira Ticket

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions