DefinitelyTyped/types/redux-auth-wrapper/authWrapper.d.ts

16 lines
421 B
TypeScript

import { ReactType } from "react";
import { AuthConfig, AuthWrapperDecorator } from ".";
export interface InjectedAuthProps {
isAuthenticated: boolean;
isAuthenticating: boolean;
}
export interface AuthWrapperConfig extends AuthConfig {
FailureComponent?: ReactType;
}
export default function authWrapper<OwnProps = {}>(
config: AuthWrapperConfig
): AuthWrapperDecorator<OwnProps & InjectedAuthProps>;