@@ -16,16 +16,9 @@ export interface SeamHttpRequestConfig<TBody, TResponseKey> {
1616 readonly params ?: any
1717 readonly data ?: TBody
1818 readonly responseKey : TResponseKey
19- readonly options : Pick < SeamHttpRequestOptions , 'waitForActionAttempt' >
19+ readonly options ? : Pick < SeamHttpRequestOptions , 'waitForActionAttempt' >
2020}
2121
22- export type ResponseFromSeamHttpRequest < T > =
23- T extends SeamHttpRequest < any , infer TResponse , infer TResponseKey >
24- ? TResponseKey extends keyof TResponse
25- ? TResponse [ TResponseKey ]
26- : undefined
27- : never
28-
2922export class SeamHttpRequest <
3023 const TBody ,
3124 const TResponse ,
@@ -58,7 +51,7 @@ export class SeamHttpRequest<
5851 return this . #config. method ?? 'get'
5952 }
6053
61- public get params ( ) {
54+ public get params ( ) : any {
6255 return this . #config. params
6356 }
6457
@@ -84,7 +77,7 @@ export class SeamHttpRequest<
8477 const data = response . data [ this . responseKey ]
8578 if ( this . responseKey === 'action_attempt' ) {
8679 const waitForActionAttempt =
87- this . #config. options . waitForActionAttempt ??
80+ this . #config. options ? .waitForActionAttempt ??
8881 this . #parent. defaults . waitForActionAttempt
8982 if ( waitForActionAttempt !== false ) {
9083 return await resolveActionAttempt (
0 commit comments