Added helpers.ts file and inserted into it the code from helpers.js, removed 'use strict', moved function logTopicAction further up in the code to handle use before definition error. Typed variables in setDefaultPostData function. Typed variables in buildReqObject function but could not figure out the connection between "const headers" and "headers.referer" - kept getting Property 'referer' does not exist on type '{}'. Do not know how to fix that.
Closes #74
Added helpers.ts file and inserted into it the code from helpers.js, removed 'use strict', moved function logTopicAction further up in the code to handle use before definition error. Typed variables in setDefaultPostData function. Typed variables in buildReqObject function but could not figure out the connection between "const headers" and "headers.referer" - kept getting Property 'referer' does not exist on type '{}'. Do not know how to fix that. Closes #74