Files
DefinitelyTyped/types/redux-auth-wrapper/connectedAuthWrapper.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

10 lines
496 B
TypeScript

import { ReactType } from "react";
import { AuthBaseConfig, AuthWrapperDecorator } from "redux-auth-wrapper";
import { AuthWrapperConfig, InjectedAuthProps } from "redux-auth-wrapper/authWrapper";
export type ConnectedAuthWrapperConfig<OwnProps = {}, State = {}> = AuthWrapperConfig & AuthBaseConfig<OwnProps, State>;
export function connectedAuthWrapper<OwnProps = {}, State = {}>(
config: ConnectedAuthWrapperConfig<OwnProps, State>
): AuthWrapperDecorator<OwnProps & InjectedAuthProps>;