Hi Team,
I'm declaring an array of strings like below and trying to use the includes method to check if a string exists in the array. However the editor throws error saying string is not assignable to the array. Any help in this would be highly appreciated.
acceptedFileTypes: Array<".jpg" | ".jpeg" | ".png" | ".doc" | ".xlsx" | "csv." | "xls">;
areFilesValid = acceptedFileTypes.includes(fileExtWithPeriod)