mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
421 B
TypeScript
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>;
|