File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import { ButtonLink } from '..' ;
33
4+ < ButtonLink fake > Text</ ButtonLink > ;
5+
46< ButtonLink href = "/foo" onNavigate = { ( ) => { } } >
57 Text
68</ ButtonLink > ;
@@ -21,3 +23,8 @@ import {ButtonLink} from '..';
2123< ButtonLink onPress = { ( ) => { } } onNavigate = { ( ) => Promise . resolve ( ) } >
2224 Text
2325</ ButtonLink > ;
26+
27+ // @ts -expect-error - bad combination
28+ < ButtonLink fake onPress = { ( ) => { } } >
29+ Text
30+ </ ButtonLink > ;
Original file line number Diff line number Diff line change @@ -312,7 +312,9 @@ type ButtonProps = ExclusifyUnion<
312312 FakeButtonProps | SubmitButtonProps | ToButtonProps | OnPressButtonProps | HrefButtonProps
313313> ;
314314
315- type ButtonLinkProps = ExclusifyUnion < ToButtonProps | OnPressButtonProps | HrefButtonProps > & {
315+ type ButtonLinkProps = ExclusifyUnion <
316+ FakeButtonProps | ToButtonProps | OnPressButtonProps | HrefButtonProps
317+ > & {
316318 bleedLeft ?: boolean ;
317319 bleedRight ?: boolean ;
318320 bleedY ?: boolean ;
You can’t perform that action at this time.
0 commit comments