-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(overlay-alert): require onclose and title or label
- Loading branch information
1 parent
2d7673c
commit c00e66c
Showing
8 changed files
with
208 additions
and
125 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
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,10 @@ | ||
import { Expect, ExpectExtends, ExpectFalse } from 'src/utils/typetest.util'; | ||
import { Props } from './OverlayAlert.types'; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
type cases = [ | ||
Expect<ExpectExtends<Props, { title: 'x'; onClose: () => void }>>, | ||
Expect<ExpectExtends<Props, { 'aria-label': 'label'; onClose: () => void }>>, | ||
Expect<ExpectExtends<Props, { title: 'x'; 'aria-label': 'label'; onClose: () => void }>>, | ||
ExpectFalse<ExpectExtends<Props, { noTitleOrLabel: 'x'; onClose: () => void }>> | ||
]; |
Oops, something went wrong.