-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript issues #68
Comments
I had these problems too, and temporarily solved them by directly editing the interface StyleSheet {
...
backgroundImage?: ResponsiveProperty<string> | string;
backgroundRepeat?: ResponsiveProperty<string> | string;
backgroundSize?: ResponsiveProperty<string> | string;
backgroundBlendMode?: ResponsiveProperty<string> | string;
minHeight?: ResponsiveProperty<string> | string;
...
} and I also had this problem in the and also solved it temporarily by adding these lines in interface BoxProps {
...
as?: string
}
declare const Box: React.ForwardRefExoticComponent<Pick<BoxProps, ... | "as"> & React.RefAttributes<unknown>>; and this issue on wich another time, I solved it temporarily by adding these lines in declare namespace TextField {
var defaultProps: {
name:string;
...
}
} |
PR #71 adding these CSS props to TypeScript and .json files
Tag |
Another problem I encountered in today's class is that when you pass to and solved it by adding these lines in interface BoxProps {
...
onSubmit?: (e: HTMLFormElement) => any;
}
declare const Box: React.ForwardRefExoticComponent<Pick<BoxProps, ... | "onSubmit"> & React.RefAttributes<unknown>>; But even solving all these issues on my local machine, I still can't upload my project to |
You can bypass that while |
Following a boilerplate from Alura Imersão React - Aula 01
I've encountered two TypeScript issues:
props:does not exist in type StyleSheet
textFieldColors
props:positive, negative
are mandatory and should be optional (?)The text was updated successfully, but these errors were encountered: