mirror of
https://github.com/iptv-org/iptv
synced 2026-10-24 11:58:35 -04:00
Update scripts
This commit is contained in:
1 parent
1decbe7ac0
commit
94f473f7ca
98 files changed
+2423
-1499
No files matched your search
@@ -0,0 +1,10 @@
|
||||
export default class NumberParser {
|
||||
async parse(number: string) {
|
||||
const parsed = parseInt(number)
|
||||
if (isNaN(parsed)) {
|
||||
throw new Error('numberParser:parse() Input value is not a number')
|
||||
}
|
||||
|
||||
return parsed
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user