From 87b86f776de4fff2582e046d07b500ada8de07c4 Mon Sep 17 00:00:00 2001 From: Carissa Knipe Date: Fri, 14 Jun 2024 12:57:36 -0700 Subject: [PATCH 1/2] feat: Add SimpleUserInfo type to use in mobile client --- src/account/accountSlice.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/account/accountSlice.ts b/src/account/accountSlice.ts index 45d60723..b245ea1e 100644 --- a/src/account/accountSlice.ts +++ b/src/account/accountSlice.ts @@ -59,6 +59,8 @@ export type User = { preferences: Record; }; +export type SimpleUserInfo = Exclude; + export const setHasAccessTokenAsync = createAsyncThunk( 'account/setHasAccessTokenAsync', () => getToken(), From 99bc629a28741c5fd8e282fa00d403dfe96e3391 Mon Sep 17 00:00:00 2001 From: Carissa Knipe Date: Fri, 14 Jun 2024 14:20:15 -0700 Subject: [PATCH 2/2] fix: Use Omit instead of Exclude --- src/account/accountSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/account/accountSlice.ts b/src/account/accountSlice.ts index b245ea1e..851c8af7 100644 --- a/src/account/accountSlice.ts +++ b/src/account/accountSlice.ts @@ -59,7 +59,7 @@ export type User = { preferences: Record; }; -export type SimpleUserInfo = Exclude; +export type SimpleUserInfo = Omit; export const setHasAccessTokenAsync = createAsyncThunk( 'account/setHasAccessTokenAsync',