8000 Merge pull request #229 from woxtu/type-annotation · wolfmib/pyscript_tutorial@191f6d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 191f6d3

Browse files

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyscriptjs/src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ function addClasses(element: HTMLElement, classes: Array<string>) {
44
}
55
}
66

7-
const getLastPath = function (str) {
7+
function getLastPath(str: string): string {
88
return str.split('\\').pop().split('/').pop();
9-
};
9+
}
1010

11-
function htmlDecode(input) {
11+
function htmlDecode(input: string): string {
1212
const doc = new DOMParser().parseFromString(ltrim(input), 'text/html');
1313
return doc.documentElement.textContent;
1414
}

0 commit comments

Comments
 (0)
0