Skip to content

Commit

Permalink
Clean up type def
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Mar 28, 2023
1 parent d44818a commit 9129469
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/inline_edit/inline_edit_form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ import { EuiFlexGroup, EuiFlexItem } from '../flex';
import { useEuiI18n } from '../i18n';
import { useGeneratedHtmlId } from '../../services/accessibility';

type _ButtonPropsWithoutOnClick = Omit<EuiButtonEmptyPropsForButton, 'onClick'>;

// Props shared between the internal form component as well as consumer-facing components
export type EuiInlineEditCommonProps = CommonProps & {
defaultValue: string;
Expand Down Expand Up @@ -49,7 +47,7 @@ export type EuiInlineEditCommonProps = CommonProps & {
/**
* Props that will be applied directly to the EuiEmptyButton displayed in readMode
*/
readModeProps?: _ButtonPropsWithoutOnClick;
readModeProps?: Omit<EuiButtonEmptyPropsForButton, 'onClick'>;
/**
* Props that will be applied directly to the EuiFieldText displayed in editMode
*/
Expand Down

0 comments on commit 9129469

Please sign in to comment.