[EuiComment] Type definition does not allow `id`
Closed this issue · 0 comments
jpcarey commented
Describe the bug
EuiComment
's TS type does not allow id
to be added to the element.
Type '{ children: Element; id: string; "data-test-subj": string; actions: {} | Iterable<ReactNode> | ReactNode[]; username: string; event: string | undefined; eventColor: "warning" | "subdued"; timelineAvatar: Element; timestamp: Element; }' is not assignable to type 'IntrinsicAttributes & EuiCommentProps & { children?: ReactNode; }'.
Property 'id' does not exist on type 'IntrinsicAttributes & EuiCommentProps & { children?: ReactNode; }'.ts(2322)
Impact and severity
Workaround: add // @ts-ignore
.
Environment and versions
- EUI version: 93.4.0
- React version: 17.0.2