Skip to content

make flush argument optional to close function in typings#151

Open
MasterOdin wants to merge 1 commit intoTooTallNate:masterfrom
MasterOdin:patch-1
Open

make flush argument optional to close function in typings#151
MasterOdin wants to merge 1 commit intoTooTallNate:masterfrom
MasterOdin:patch-1

Conversation

@MasterOdin
Copy link

The type doc for the close method mentions that the flush argument defaults to true. This leads one to believe that the parameter is optional, however, the actual definition makes the parameter mandatory within TypeScript. This PR fixes that so that the parameter is fully optional to use or not, which also aligns with suggested usage I've seen of the method elsewhere in issues and the like.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant