Changeset View
Changeset View
Standalone View
Standalone View
lib/utils/call-server-endpoint.js
Show All 13 Lines | import { | ||||
endpointIsSocketOnly, | endpointIsSocketOnly, | ||||
} from '../types/endpoints.js'; | } from '../types/endpoints.js'; | ||||
import { forcePolicyAcknowledgmentActionType } from '../types/policy-types.js'; | import { forcePolicyAcknowledgmentActionType } from '../types/policy-types.js'; | ||||
import type { Dispatch } from '../types/redux-types.js'; | import type { Dispatch } from '../types/redux-types.js'; | ||||
import type { | import type { | ||||
ServerSessionChange, | ServerSessionChange, | ||||
ClientSessionChange, | ClientSessionChange, | ||||
} from '../types/session-types.js'; | } from '../types/session-types.js'; | ||||
import type { ConnectionStatus } from '../types/socket-types.js'; | import type { ConnectionStatus } from '../types/socket-types'; | ||||
import type { CurrentUserInfo } from '../types/user-types.js'; | import type { CurrentUserInfo } from '../types/user-types.js'; | ||||
export type CallServerEndpointOptions = Shape<{ | export type CallServerEndpointOptions = Shape<{ | ||||
// null timeout means no timeout, which is the default for uploadBlob | // null timeout means no timeout, which is the default for uploadBlob | ||||
+timeout: ?number, // in milliseconds | +timeout: ?number, // in milliseconds | ||||
// getResultInfo will be called right before callServerEndpoint successfully | // getResultInfo will be called right before callServerEndpoint successfully | ||||
// resolves and includes additional information about the request | // resolves and includes additional information about the request | ||||
+getResultInfo: (resultInfo: CallServerEndpointResultInfo) => mixed, | +getResultInfo: (resultInfo: CallServerEndpointResultInfo) => mixed, | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |