Give type information to convertedLabelArray

This commit is contained in:
Robert
2024-02-07 14:12:58 +00:00
parent f0ce52d01a
commit bdbd123d32

View File

@@ -17,7 +17,7 @@ export function convertNonPrintableChars(label: string | undefined) {
* If the label contains certain non-printable characters, loop through each
* character and replace it with the cooresponding unicode control label.
*/
const convertedLabelArray: any[] = [];
const convertedLabelArray: string[] = [];
for (let i = 0; i < label.length; i++) {
const labelCheck = label.codePointAt(i)!;
if (labelCheck <= CONTROL_CODE) {