Give type information to convertedLabelArray
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user