whatsapp-api-js
whatsapp-api-js copied to clipboard
Typescript compilation fails on 4.0.0, Cannot find name 'this'
Describe the bug
Typescript fail to compile, that is a simple error that can be fixed in a patch
node_modules/whatsapp-api-js/lib/types/index.d.ts:155:139 - error TS2304: Cannot find name 'this'.
155 broadcastMessage(phoneID: string, to: string[], message: ClientMessage, batch_size?: number, delay?: number): Array<ReturnType<typeof this.sendMessage>>;
Expected behavior tsc should pass...
Desktop (please complete the following information):
- OS: Windows
- Runtime node@20
- Library Version 4.0.0