Resolved issue #16 , Convert src/messaging/create.js from JS to TS.
Changes
Converted as many variables in the create file to types. Some include number, string, boolean, and a custom interface to handle the data being passed through, MessageData.
Added proper return types such as Promise<void>, Promise<MessageData, and Promise<boolean>.
Suppressed some linting errors due to untranslated JavaScript.
Tests
Ran and passed npm run lint , with the only eslint silencing was related to "Messaging" being an any type
Resolved issue #16 , Convert src/messaging/create.js from JS to TS.
Changes
number
,string
,boolean
, and a custom interface to handle the data being passed through,MessageData
.Promise<void>
,Promise<MessageData
, andPromise<boolean>
.Tests
npm run lint
, with the only eslint silencing was related to "Messaging" being an any typenpm run test
./nodebb start
without error.