BeefreeSDK / beefree-sdk-npm-official

Official NPM package of Beefree SDK
https://developers.beefree.io
Apache License 2.0
19 stars 7 forks source link

Incorrect type declaration in reload() and load() #114

Closed simcen closed 1 year ago

simcen commented 1 year ago

https://github.com/BEE-Plugin/Bee-plugin-official/blob/8a0a7d71120940322977b3d6bcb484c8acdc54a0/src/index.ts#L165 is: reload = (template: Record<string, unknown>, options?: IBeeOptions) => this.executeAction(RELOAD, template, options)

should be: reload = (template: IEntityContentJson, options?: IBeeOptions) => this.executeAction(RELOAD, template, options)

https://github.com/BEE-Plugin/Bee-plugin-official/blob/8a0a7d71120940322977b3d6bcb484c8acdc54a0/src/index.ts#L143 is: load = (template: Record<string, unknown>) => this.executeAction(LOAD, template)

should be: load = (template: IEntityContentJson) => this.executeAction(LOAD, template)

davidesamp commented 1 year ago

Hi @simcen,

Thanks for you report, we released a new version 2.1.5 that resolves this issue.