-
Notifications
You must be signed in to change notification settings - Fork 140
fix: requestFragment option type #297
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @armand1m. Good catch.
👍 |
I'll also have to open one for the |
@armand1m Sure, Please do |
👍 |
Is this PR waiting for something to be added? |
CI is failing with messages from saucelabs issues I cannot solve:
|
I think Lines 65 to 81 in 571b6d5
If having the implementing application close over options.requestFragment = options.requestFragment(filterRequestHeaders) |
Problem
Currently, when trying to create a
requestFragment
handler in typescript, the current type says that I should implement the fragment handler like this:which results in problems since the actual call in the source code is not actually like this
This PR fixes it by making it respect the actual implementation usage.