diff --git a/core/README.md b/core/README.md index 71279e7..b9d2f95 100644 --- a/core/README.md +++ b/core/README.md @@ -181,13 +181,17 @@ export declare const If: FC>; ## `` `` `` Props ```tsx -import { FC, PropsWithChildren } from 'react'; +import { type FC, type PropsWithChildren } from 'react'; export declare const Switch: FC>; -export interface CaseProps { + +type TagType = React.ElementType | keyof JSX.IntrinsicElements; +interface CaseElementProps { + as?: T; readonly condition?: boolean; } -export declare const Case: FC>; -export declare const Default: FC; +export type CaseProps = CaseElementProps & React.ComponentPropsWithoutRef; +export declare const Case: (props: CaseProps) => null; +export declare const Default: (props: CaseProps) => null; ``` ## Development