You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we use types in Typescript that can be extended with ampersand syntax &, it won't work.
For example, we have a pretty funky type definition like this in our repository:
exporttypeILinkProps=ITypeAgnosticLinkProps&Omit<INextLinkProps,"children">&{/** * Disables a link, visually and functionally * @default false */isDisabled?: boolean;/** * Sets `target="_blank"` and `rel="noreferrer"` explicitly. * If props contain `target="_blank"` and `rel="noreferrer"` * this will be set to isExternal automatically. * _NOTE:_ This is a pure technical flag, if you're looking for a visual * representation of an external link, use the `icon` and the `iconPosition` prop. */isExternal?: boolean;};
First it won't work because of the Omit, but if that would be solved (or deleted), it still doesn't work as the & is not recognized as extends.
The text was updated successfully, but these errors were encountered:
If we use types in Typescript that can be extended with ampersand syntax
&
, it won't work.For example, we have a pretty funky type definition like this in our repository:
First it won't work because of the
Omit
, but if that would be solved (or deleted), it still doesn't work as the&
is not recognized as extends.The text was updated successfully, but these errors were encountered: