Skip to content

Commit

Permalink
feat: authts#4 reduce usage of any type
Browse files Browse the repository at this point in the history
  • Loading branch information
pamapa committed Oct 5, 2021
1 parent 4a3d34d commit f067d1b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/oidc-client-ts.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,13 @@ export class UserManager {
// (undocumented)
signoutPopup(args?: SignoutPopupArgs): Promise<void>;
// (undocumented)
signoutPopupCallback(url: any, keepOpen: any): Promise<void>;
signoutPopupCallback(url?: string, keepOpen?: boolean): Promise<void>;
// (undocumented)
signoutRedirect(args?: SignoutRedirectArgs): Promise<void>;
// (undocumented)
signoutRedirectCallback(url?: string): Promise<SignoutResponse>;
// (undocumented)
protected _signoutStart(args: CreateSignoutRequestArgs | undefined, handle: IWindow): Promise<any>;
protected _signoutStart(args: CreateSignoutRequestArgs | undefined, handle: IWindow): Promise<NavigateResponse>;
// Warning: (ae-forgotten-export) The symbol "SilentRenewService" needs to be exported by the entry point index.d.ts
//
// (undocumented)
Expand Down
6 changes: 3 additions & 3 deletions src/UserManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,10 @@ export class UserManager {
}, handle);
Log.info("UserManager.signoutPopup: successful");
}
public async signoutPopupCallback(url: any, keepOpen: any): Promise<void> {
public async signoutPopupCallback(url?: string, keepOpen = false): Promise<void> {
if (typeof(keepOpen) === "undefined" && typeof(url) === "boolean") {
keepOpen = url;
url = null;
url = undefined;
}

const delimiter = "?";
Expand All @@ -479,7 +479,7 @@ export class UserManager {
const navResponse = await this._signoutStart(args, handle);
return this._signoutEnd(navResponse.url);
}
protected async _signoutStart(args: CreateSignoutRequestArgs = {}, handle: IWindow): Promise<any> {
protected async _signoutStart(args: CreateSignoutRequestArgs = {}, handle: IWindow): Promise<NavigateResponse> {
Log.debug("UserManager._signoutStart: got navigator window handle");

try {
Expand Down

0 comments on commit f067d1b

Please sign in to comment.