TooTallNate / node-speaker

Output PCM audio data to the speakers
648 stars 145 forks source link

make flush argument optional to close function in typings #151

Open MasterOdin opened 3 years ago

MasterOdin commented 3 years ago

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.