What types should you use in a Amplify-Typescript-React application when using withAuthenticator?
There are only js examples in the docs: https://ui.docs.amplify.aws/react/connected-components/authenticator
Using this works but I have to suppress a number of warnings:
import { Amplify } from "aws-amplify";
import { withAuthenticator } from "@aws-amplify/ui-react";
Amplify.configure({
Auth: {
...
},
});
function App({ user }) { ... // TS7031 any type - what about isPassedToWithAuthenticator or signOut?
export default withAuthenticator(App); // TS2345 warning