Chore: Fix more strict typescript errors (#35514)

This commit is contained in:
kay delaney
2021-06-14 15:13:48 +01:00
committed by GitHub
parent 6ee2f1fe3e
commit 0f81703c35
18 changed files with 128 additions and 161 deletions

View File

@@ -68,9 +68,9 @@ export type LdapConnectionInfo = LdapServerInfo[];
export interface LdapState {
connectionInfo: LdapConnectionInfo;
user?: LdapUser | null;
syncInfo?: SyncInfo | null;
connectionError?: LdapError | null;
userError?: LdapError | null;
ldapError?: LdapError | null;
user?: LdapUser;
syncInfo?: SyncInfo;
connectionError?: LdapError;
userError?: LdapError;
ldapError?: LdapError;
}

View File

@@ -88,11 +88,11 @@ export interface UserOrg {
}
export interface UserAdminState {
user: UserDTO | null;
user?: UserDTO;
sessions: UserSession[];
orgs: UserOrg[];
isLoading: boolean;
error?: UserAdminError | null;
error?: UserAdminError;
}
export interface UserAdminError {