diff --git a/lib/utils/keyserver-call.js b/lib/utils/keyserver-call.js --- a/lib/utils/keyserver-call.js +++ b/lib/utils/keyserver-call.js @@ -14,7 +14,7 @@ import { useSelector, useDispatch } from './redux-utils.js'; import type { PlatformDetails } from '../types/device-types.js'; import type { Endpoint } from '../types/endpoints.js'; -import type { KeyserverInfo } from '../types/keyserver-types.js'; +import type { KeyserverInfos } from '../types/keyserver-types.js'; import type { Dispatch } from '../types/redux-types.js'; import type { ConnectionStatus } from '../types/socket-types.js'; import type { CurrentUserInfo } from '../types/user-types.js'; @@ -74,12 +74,10 @@ const createBoundServerCallsSelector: CreateBoundServerCallsSelectorType = (_memoize(baseCreateBoundServerCallsSelector): any); -export type KeyserverInfoPartial = $Shape; - export type BindKeyserverCallParams = { +dispatch: Dispatch, +currentUserInfo: ?CurrentUserInfo, - +keyserverInfos: { +[keyserverID: string]: KeyserverInfoPartial }, + +keyserverInfos: KeyserverInfos, }; const bindCallKeyserverEndpointSelector: BindKeyserverCallParams => < @@ -94,7 +92,7 @@ ( dispatch: Dispatch, currentUserInfo: ?CurrentUserInfo, - keyserverInfos: { +[keyserverID: string]: KeyserverInfo }, + keyserverInfos: KeyserverInfos, ) => { return _memoize( (