fix(commons): type errors

This commit is contained in:
Elian Doran 2025-05-27 23:28:09 +03:00
parent 114607f762
commit d81ab9ea1d
No known key found for this signature in database

View File

@ -44,7 +44,7 @@ export function trimIndentation(strings: TemplateStringsArray, ...values: any[])
// Trim the indentation of the first line in all the lines. // Trim the indentation of the first line in all the lines.
const lines = str.split("\n"); const lines = str.split("\n");
const output = []; const output: string[] = [];
for (let i = 0; i < lines.length; i++) { for (let i = 0; i < lines.length; i++) {
let numSpacesLine = 0; let numSpacesLine = 0;
while (str.charAt(numSpacesLine) == " " && numSpacesLine < str.length) { while (str.charAt(numSpacesLine) == " " && numSpacesLine < str.length) {