mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(commons): type errors
This commit is contained in:
parent
114607f762
commit
d81ab9ea1d
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user