From f5defc4f2830bc715910d584aea162cfc8942670 Mon Sep 17 00:00:00 2001 From: Albie Date: Tue, 12 Oct 2021 11:22:47 +0100 Subject: [PATCH] Add `null` as a valid value for the `UserState.user` The actions set the `user` object to `null` on the state but the typings do not allow that value --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b7254a6..fb58bd9 100644 --- a/index.d.ts +++ b/index.d.ts @@ -14,7 +14,7 @@ declare module "redux-oidc" { } export interface UserState { - readonly user?: User; + readonly user?: User | null; readonly isLoadingUser: boolean; }