You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property ‘id’ in type ‘Item’ is not assignable to the same property in base type ‘Component<ItemTemplateSpec, TypeConfig>’.
Type ‘string’ is not assignable to type ‘number’.
‘id’ is defined as a property in class ‘Component<ItemTemplateSpec, TypeConfig>’, but is overridden here in ‘Item’ as an accessor.
The user, as well as another user who chimed in, both implied that they use the id property override to inform the HTML tag that is produced by the Lightning Inspector. The IDs in these HTML elements are then used in Cypress testing for QA validation.
The text was updated successfully, but these errors were encountered:
frank-weindel
changed the title
TypeScript: Unable to override the id accessor of a Component
TypeScript: Unable to override the id accessor of a Component with string
Feb 22, 2023
A user on our forums made a post reporting that when they add a
get
accessor for the propertyid
to a Component class like so......it triggers the following TypeScript errors:
The user, as well as another user who chimed in, both implied that they use the
id
property override to inform the HTML tag that is produced by the Lightning Inspector. The IDs in these HTML elements are then used in Cypress testing for QA validation.The text was updated successfully, but these errors were encountered: