diff --git a/src/types/ContentType.ts b/src/types/ContentType.ts index e93e911..9c79520 100644 --- a/src/types/ContentType.ts +++ b/src/types/ContentType.ts @@ -2,11 +2,11 @@ import React from 'react' type RenderContentType = { renderContent: (read: boolean) => React.ReactNode - readonly contentComponent: undefined + readonly contentComponent?: React.ReactNode } type ContentComponentType = { - renderContent: undefined + renderContent?: (read: boolean) => React.ReactNode readonly contentComponent: React.ReactNode } diff --git a/src/types/HeaderType.ts b/src/types/HeaderType.ts index 6901f6f..d0ee3a8 100644 --- a/src/types/HeaderType.ts +++ b/src/types/HeaderType.ts @@ -2,11 +2,11 @@ import React from 'react' type RenderHeaderType = { renderHeader: (read: boolean) => React.ReactNode - readonly headerComponent: undefined + readonly headerComponent?: React.ReactNode } type HeaderComponentType = { - renderHeader: undefined + renderHeader?: (read: boolean) => React.ReactNode readonly headerComponent: React.ReactNode }