BeefreeSDK/beefree-sdk-npm-official

Request: TS | `IBeeConfig['onTogglePreview']` and `IBeeConfig['onPreview']` missing parameter `Status: boolean`

Closed this issue · 2 comments

Is your feature request related to a problem? Please describe.
IBeeConfig['onTogglePreview'] and IBeeConfig['onPreview'] are missing parameter Status: boolean as seen in documentation and observed in usage.

https://docs.beefree.io/methods-and-events/#instance-events:
Screen Shot 2022-03-24 at 12 34 43 PM

bee.d.ts:
Screen Shot 2022-03-24 at 12 36 06 PM

config passed to beeInstance.start():
Screen Shot 2022-03-24 at 12 37 40 PM

Describe the solution you'd like
Please add the parameters to the types.

Describe alternatives you've considered
I am currently disabling TypeScript for this line.
I could also patch the type locally.

Additional context
None. Thank you for getting to my last issue so quickly!

Hi @elliothimmelfarb ,

You can find the fix on the latest version of the npm package v1.6.3.

Thank you @davidesamp! ❤️