mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 17:59:37 +02:00
First typescript iteration
This commit is contained in:
parent
d5f345ed4c
commit
65fcc3119c
113 changed files with 1961 additions and 1784 deletions
14
server/helpers/custom-validators/misc.ts
Normal file
14
server/helpers/custom-validators/misc.ts
Normal file
|
@ -0,0 +1,14 @@
|
|||
function exists (value) {
|
||||
return value !== undefined && value !== null
|
||||
}
|
||||
|
||||
function isArray (value) {
|
||||
return Array.isArray(value)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
exists,
|
||||
isArray
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue