Skip to content

fix(types): add missing argument to optionally()#2223

Merged
gr2m merged 1 commit intonock:mainfrom
limulus:fix-optionally-type
Aug 20, 2021
Merged

fix(types): add missing argument to optionally()#2223
gr2m merged 1 commit intonock:mainfrom
limulus:fix-optionally-type

Conversation

@limulus
Copy link
Copy Markdown
Contributor

@limulus limulus commented Aug 19, 2021

I noticed that the type for Interceptor.optionally() was missing the optional flag parameter. This PR fixes that.

Comment thread types/index.d.ts
twice(): this
thrice(): this
optionally(): this
optionally(flag?: boolean): this
Copy link
Copy Markdown
Member

@gr2m gr2m Aug 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

confirmed, it's documented as such

image

@gr2m gr2m merged commit 74e30de into nock:main Aug 20, 2021
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 13.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants