diff --git a/src/components/code/code_block.tsx b/src/components/code/code_block.tsx index 01861bee93f..01f766f6db7 100644 --- a/src/components/code/code_block.tsx +++ b/src/components/code/code_block.tsx @@ -4,12 +4,17 @@ import { CommonProps } from '../common'; import { EuiCodeBlockImpl } from './_code_block'; import { EuiCodeSharedProps } from './code'; -export interface EuiCodeBlockProps extends EuiCodeSharedProps { +interface OwnProps extends EuiCodeSharedProps { inline?: false; } -type Props = CommonProps & EuiCodeBlockProps & HTMLAttributes; +export type EuiCodeBlockProps = CommonProps & + OwnProps & + HTMLAttributes; -export const EuiCodeBlock: FunctionComponent = ({ inline, ...rest }) => { +export const EuiCodeBlock: FunctionComponent = ({ + inline, + ...rest +}) => { return ; };