Skip to content

Commit

Permalink
Merge pull request #153 from cymen/master
Browse files Browse the repository at this point in the history
fix TypeScript interface of SignoutCallbackComponent
  • Loading branch information
maxmantz authored Jul 10, 2019
2 parents e1e8417 + 935b8ba commit 0b97f86
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
declare module "redux-oidc" {
import { UserManager, UserManagerSettings, User } from "oidc-client";
import { SignoutResponse, UserManager, UserManagerSettings, User } from "oidc-client";
import { Map, fromJS } from "immutable";
import { Middleware, Store } from "redux";
import * as React from "react";
Expand Down Expand Up @@ -29,8 +29,15 @@ declare module "redux-oidc" {
CallbackComponentProps
> {}

export interface SignoutCallbackComponentProps {
readonly userManager: UserManager;
readonly successCallback: (response: SignoutResponse) => void;
readonly errorCallback?: (error: Error) => void;
readonly route?: string;
}

export class SignoutCallbackComponent extends React.Component<
CallbackComponentProps
SignoutCallbackComponentProps
> {}

export interface OidcProviderProps<TSTate> {
Expand Down

0 comments on commit 0b97f86

Please sign in to comment.