From 15cbc88ada06e7007fc7be59c4708b34a4a8c872 Mon Sep 17 00:00:00 2001 From: Dimitri Mitropoulos Date: Tue, 18 Feb 2020 14:47:48 -0500 Subject: [PATCH] exports entire props definition for EuiCodeBlock --- src/components/code/code_block.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 ; };