File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
packages/transporter/src/concerns Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -26,14 +26,14 @@ export const retryDecision = <TResponse>(
26
26
}
27
27
28
28
if ( isSuccess ( response ) ) {
29
- return outcomes . onSucess ( response ) ;
29
+ return outcomes . onSuccess ( response ) ;
30
30
}
31
31
32
32
return outcomes . onFail ( response ) ;
33
33
} ;
34
34
35
35
export type Outcomes < TResponse > = {
36
36
readonly onFail : ( response : Response ) => Readonly < Promise < never > > ;
37
- readonly onSucess : ( response : Response ) => Readonly < Promise < TResponse > > ;
37
+ readonly onSuccess : ( response : Response ) => Readonly < Promise < TResponse > > ;
38
38
readonly onRetry : ( response : Response ) => Readonly < Promise < TResponse > > ;
39
39
} ;
Original file line number Diff line number Diff line change @@ -94,7 +94,11 @@ export function retryableRequest<TResponse>(
94
94
} ;
95
95
96
96
const decisions : Outcomes < TResponse > = {
97
- onSucess : response => deserializeSuccess ( response ) ,
97
+ /**
98
+ * @deprecated this property is deprecated in favor of `onSuccess`
99
+ */
100
+ onSucess : response => onSuccess ( response ) ,
101
+ onSuccess : response => deserializeSuccess ( response ) ,
98
102
onRetry ( response ) {
99
103
const stackFrame = pushToStackTrace ( response ) ;
100
104
You can’t perform that action at this time.
0 commit comments