-
Notifications
You must be signed in to change notification settings - Fork 560
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add TS types for component-component, dialog, portal, rect, alert-dia…
…log, and utils.
- Loading branch information
Harry Hedger
committed
Mar 30, 2019
1 parent
c4fa9c9
commit e4a0a4e
Showing
21 changed files
with
6,544 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
declare module "@reach/alert-dialog" { | ||
import { DialogProps, DialogContentProps } from "@reach/dialog"; | ||
|
||
type AlertDialogProps = { | ||
isOpen?: boolean; | ||
onDismiss?: () => void; | ||
leastDestructiveRef?: React.RefObject<HTMLElement>; | ||
children: React.ReactNode; | ||
} & DialogProps; | ||
|
||
type AlertDialogContentProps = { | ||
children: React.ReactNode; | ||
} & DialogContentProps; | ||
|
||
export const AlertDialog: React.SFC<AlertDialogProps>; | ||
export const AlertDialogLabel: React.SFC<HTMLDivElement>; | ||
export const AlertDialogDescription: React.SFC<HTMLDivElement>; | ||
export const AlertDialogOverlay: React.SFC<AlertDialogProps>; | ||
export const AlertDialogContent: React.SFC<AlertDialogContentProps>; | ||
} |
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
Oops, something went wrong.