whatsapp-api-js icon indicating copy to clipboard operation
whatsapp-api-js copied to clipboard

Typescript compilation fails on 4.0.0, Cannot find name 'this'

Open yairiff opened this issue 6 months ago • 2 comments

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

yairiff avatar Aug 13 '24 14:08 yairiff