We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9334592 commit f92c4c5Copy full SHA for f92c4c5
pyscriptjs/src/utils.ts
@@ -4,11 +4,11 @@ function addClasses(element: HTMLElement, classes: Array<string>) {
4
}
5
6
7
-const getLastPath = function (str) {
+function getLastPath(str: string): string {
8
return str.split('\\').pop().split('/').pop();
9
-};
+}
10
11
-function htmlDecode(input) {
+function htmlDecode(input: string): string {
12
const doc = new DOMParser().parseFromString(ltrim(input), 'text/html');
13
return doc.documentElement.textContent;
14
0 commit comments