-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
type: modify
Default
type issue. #50
- Loading branch information
1 parent
6dd9df9
commit 396c946
Showing
3 changed files
with
14 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
declare module '@uiw/react-only-when/switch' { | ||
import { FC, PropsWithChildren } from 'react'; | ||
export declare const Switch: <T extends TagType>({ children }: PropsWithChildren) => null; | ||
import type { FC, PropsWithChildren } from 'react'; | ||
export const Switch: FC<PropsWithChildren<{}>>; | ||
type TagType = React.ElementType | keyof JSX.IntrinsicElements; | ||
interface CaseElementProps<T extends TagType> { | ||
as?: T; | ||
readonly condition?: boolean; | ||
} | ||
export type CaseProps<T extends TagType> = CaseElementProps<T> & React.ComponentPropsWithoutRef<T>; | ||
export declare const Case: <T extends TagType>(props: CaseProps<T>) => any; | ||
export declare const Default: <T extends TagType>(props: CaseProps<T>) => any; | ||
export const Case: <T extends TagType>(props: CaseProps<T>) => any; | ||
export const Default: <T extends TagType>( | ||
props: Omit<CaseProps<T>, 'condition'>, | ||
) => import('react/jsx-runtime').JSX.Element; | ||
} |