Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
[typings] Update MutationConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Sep 4, 2017
1 parent 5a38343 commit 6882cb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions typings/react-relay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,11 @@ declare module "react-relay/modern" {
variables: Variables
onCompleted?: ((response: T, errors: RelayNetworkTypes.PayloadError[] | null) => void) | null
onError?: ((error: Error) => void) | null
optimisticResponse?: (() => Object) | null
// FIXME This appears to be incorrect, because Relay complains about it being a function.
// optimisticResponse?: (() => Object) | null
optimisticResponse?: Object | null
optimisticUpdater?: ((store: RecordSourceSelectorProxy) => void) | null
updater?: ((store: RecordSourceSelectorProxy) => void) | null
updater?: ((store: RecordSourceSelectorProxy, data: T) => void) | null
configs?: RelayMutationConfig[]
}
export type RecordSourceSelectorProxy = any // Todo: add proper types
Expand Down

0 comments on commit 6882cb9

Please sign in to comment.