client: migrate Torrent Details Modal to TypeScript

This commit is contained in:
Jesse Chan
2020-10-01 00:00:12 +08:00
parent 7890ab74b5
commit 25c68fbd70
37 changed files with 639 additions and 568 deletions
-1
View File
@@ -1,4 +1,3 @@
export default {
capitalize: (string: string): string => string.charAt(0).toUpperCase() + string.slice(1),
withoutTrailingSlash: (input: string): string => input.replace(/\/{1,}$/, ''),
};