We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Simple example:
<SweetAlert warning title={'my title'} onConfirm={() => <></>}> MyContent </SweetAlert>
Typescript exception:
S2322: Type '{ children: string; warning: true; title: string; onConfirm: () => Element; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<SweetAlert> & Pick<Pick<Readonly<SweetAlertProps>, keyof SweetAlertProps> & Pick<...> & Pick<...>, "title" | ... 24 more ... | "customButtons"> & InexactPartial<...> & InexactPartial<...>'. Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<SweetAlert> & Pick<Pick<Readonly<SweetAlertProps>, keyof SweetAlertProps> & Pick<...> & Pick<...>, "title" | ... 24 more ... | "customButtons"> & InexactPartial<...> & InexactPartial<...>'.
using:
"typescript": "^4.8.4" "bootstrap": "^5.2.2", "react-bootstrap": "^2.5.0", "react": "^18.2.0",
The text was updated successfully, but these errors were encountered:
Just do that
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Simple example:
Typescript exception:
using:
The text was updated successfully, but these errors were encountered: