Currently, I am transforming an Object in Typescript into a string for storage in a database.
formData.survey_data = encodeURI(JSON.stringify(formData.survey_data));
The result functions correctly in the browser, however, there is an error being flagged by Typescript.
The message states: 'Type 'string' is not assignable to type 'any[]'
I am confused by what this means. Can someone please explain?