Skip to content

Commit 6cdc77d

Browse files
Stainless Botstainless-app[bot]
Stainless Bot
authored andcommitted
chore(internal): pass props through internal parser (#1125)
1 parent 7f8b872 commit 6cdc77d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/core.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ export class APIPromise<T> extends Promise<WithRequestID<T>> {
116116
});
117117
}
118118

119-
_thenUnwrap<U>(transform: (data: T) => U): APIPromise<U> {
119+
_thenUnwrap<U>(transform: (data: T, props: APIResponseProps) => U): APIPromise<U> {
120120
return new APIPromise(this.responsePromise, async (props) =>
121-
_addRequestID(transform(await this.parseResponse(props)), props.response),
121+
_addRequestID(transform(await this.parseResponse(props), props), props.response),
122122
);
123123
}
124124

0 commit comments

Comments
 (0)