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

10 lines
470 B
TypeScript

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