mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 23:10:00 +02:00
Api changes
This commit is contained in:
parent
682210c46f
commit
38bcbfdb8f
20 changed files with 319 additions and 154 deletions
8
server/utils/stoi.ts
Normal file
8
server/utils/stoi.ts
Normal file
|
@ -0,0 +1,8 @@
|
|||
export default function stoi(val: any) {
|
||||
if (typeof val === "string") {
|
||||
return parseInt(val)
|
||||
}
|
||||
else {
|
||||
return val;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue