Files
DefinitelyTyped/types/redux-auth-wrapper/authWrapper.d.ts
Karol Janyst 76241738dc Update redux-auth-wrapper to v2 (#18236)
* Update redux-auth-wrapper to version 2

* Fix linter errors

* Add redirectAction optiona to router decorator
2017-07-20 01:41:12 -07:00

16 lines
430 B
TypeScript

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