Skip to content

Commit

Permalink
[EuiComment] Fix typing to accurately reflect ...rest spread (#8089)
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen authored Oct 18, 2024
1 parent 86a1f4b commit 4b54564
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions packages/eui/changelogs/upcoming/8089.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**Bug fixes**

- Fixed `EuiComment`'s typing to correctly reflect all accepted props
5 changes: 3 additions & 2 deletions packages/eui/src/components/comment_list/comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import React, { FunctionComponent } from 'react';
import classNames from 'classnames';
import { EuiTimelineItem } from '../timeline';
import { EuiTimelineItem, EuiTimelineItemProps } from '../timeline';
import { EuiCommentEvent, EuiCommentEventProps } from './comment_event';
import {
EuiCommentTimeline,
Expand All @@ -17,7 +17,8 @@ import {

export interface EuiCommentProps
extends EuiCommentEventProps,
EuiCommentTimelineProps {}
EuiCommentTimelineProps,
Omit<EuiTimelineItemProps, 'children' | 'icon' | 'iconAriaLabel'> {}

export const EuiComment: FunctionComponent<EuiCommentProps> = ({
children,
Expand Down

0 comments on commit 4b54564

Please sign in to comment.