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

refactor: recreate project using TypeScript

Open IvanGodinez21 opened this issue 1 year ago • 2 comments

Description

Describe the changes made by this pull request.

This PR recreates the entire source code into a TypeScript project.

add:

  • Additional configuration files.

modify:

  • All JS files were converted into TS files with ESM.

Related issues

List related issues (if any) and/or @mentions of the person or team responsible for reviewing proposed changes (left blank if not applicable). List by using - [ ] and the issue number, e.g. - [ ] #1 or - [x] #1 if the issue is closed/solved.

  • [x] None

Testing

Help me how can I test or look at the changes (left blank if not applicable).

  • Test files were also converted to TypeScript.
  • A configuration file was added for testing with Jest.

Notes

Some additional notes if necessary (left blank if not applicable).

  • Requires a better type definition for the functions parameters.
  • Some types were added.

IvanGodinez21 avatar May 08 '24 00:05 IvanGodinez21

Hi @IvanGodinez21 thanks for your work, it's quite an intense rework! It will take me some time to review, I'm quite busy lately..

Some follow-up questions:

  1. Have you managed to implement GitHub Action for the testing part?
  2. Is the swagger generator still working?

chrishubert avatar May 17 '24 08:05 chrishubert