]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Enable more angular options
authorChocobozzz <me@florianbigard.com>
Fri, 28 Sep 2018 08:36:26 +0000 (10:36 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 28 Sep 2018 08:36:46 +0000 (10:36 +0200)
client/tsconfig.json
server/models/video/video-format-utils.ts

index f1d97110dfbbba3bed6acf38fa3018668a352f8c..e041769dd9c8a170f74ba3935ef37e8118e27d60 100644 (file)
@@ -7,6 +7,7 @@
     "moduleResolution": "node",
     "emitDecoratorMetadata": true,
     "experimentalDecorators": true,
+    "noImplicitAny": false,
     "target": "es5",
     "typeRoots": [
       "node_modules/@types"
       "crypto": [ "./shims/noop" ]
     }
   },
+  "angularCompilerOptions": {
+    "strictInjectionParameters": true,
+    "fullTemplateTypeCheck": true
+  },
   "exclude": [
     "../node_modules",
     "node_modules",
index 18364a287d73e5f6a69b33693cae19b0d92effe1..f23dde9b874a854ac7c079f51f6ef2808808d1be 100644 (file)
@@ -45,7 +45,7 @@ function videoModelToFormattedJSON (video: VideoModel, options?: VideoFormatting
       label: VideoModel.getPrivacyLabel(video.privacy)
     },
     nsfw: video.nsfw,
-    description: options.completeDescription === true ? video.description : video.getTruncatedDescription(),
+    description: options && options.completeDescription === true ? video.description : video.getTruncatedDescription(),
     isLocal: video.isOwned(),
     duration: video.duration,
     views: video.views,