Changeset View
Changeset View
Standalone View
Standalone View
lib/utils/action-utils.js
Show First 20 Lines • Show All 350 Lines • ▼ Show 20 Lines | callServerEndpoint( | ||||
socketAPIHandler, | socketAPIHandler, | ||||
endpoint, | endpoint, | ||||
data, | data, | ||||
options, | options, | ||||
); | ); | ||||
} | } | ||||
export type ActionFunc<F> = (callServerEndpoint: CallServerEndpoint) => F; | export type ActionFunc<F> = (callServerEndpoint: CallServerEndpoint) => F; | ||||
export type BindServerCall = <F>(serverCall: ActionFunc<F>) => F; | |||||
type BindServerCallsParams = { | type BindServerCallsParams = { | ||||
dispatch: Dispatch, | dispatch: Dispatch, | ||||
cookie: ?string, | cookie: ?string, | ||||
urlPrefix: string, | urlPrefix: string, | ||||
sessionID: ?string, | sessionID: ?string, | ||||
currentUserInfo: ?CurrentUserInfo, | currentUserInfo: ?CurrentUserInfo, | ||||
connectionStatus: ConnectionStatus, | connectionStatus: ConnectionStatus, | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |