UCF-CEN-5016 / NodeBB-UCF

This is a class specific fork of the NodeBB project for CEN 5016 taught in the Spring 2024 semester at UCF.
GNU General Public License v3.0
0 stars 74 forks source link

Feature/convert to typescript src/api/helpers #173

Open ksamms1 opened 9 months ago

ksamms1 commented 9 months ago

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