]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/custom-validators/misc.ts
allow public video privacy to be deleted in the web client
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / misc.ts
index fd3b45804245d955ef8265f24b2985225d5e82d7..229e9f03c07a4135e46a7a8e66a6729126847bcf 100644 (file)
@@ -14,7 +14,7 @@ function isSafePath (p: string) {
     })
 }
 
-function isArray (value: any) {
+function isArray (value: any): value is any[] {
   return Array.isArray(value)
 }