Enable more angular options
This commit is contained in:
parent
cee43cf11c
commit
07524e229f
|
@ -7,6 +7,7 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
|
"noImplicitAny": false,
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"node_modules/@types"
|
"node_modules/@types"
|
||||||
|
@ -32,6 +33,10 @@
|
||||||
"crypto": [ "./shims/noop" ]
|
"crypto": [ "./shims/noop" ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"angularCompilerOptions": {
|
||||||
|
"strictInjectionParameters": true,
|
||||||
|
"fullTemplateTypeCheck": true
|
||||||
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"../node_modules",
|
"../node_modules",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
|
|
@ -45,7 +45,7 @@ function videoModelToFormattedJSON (video: VideoModel, options?: VideoFormatting
|
||||||
label: VideoModel.getPrivacyLabel(video.privacy)
|
label: VideoModel.getPrivacyLabel(video.privacy)
|
||||||
},
|
},
|
||||||
nsfw: video.nsfw,
|
nsfw: video.nsfw,
|
||||||
description: options.completeDescription === true ? video.description : video.getTruncatedDescription(),
|
description: options && options.completeDescription === true ? video.description : video.getTruncatedDescription(),
|
||||||
isLocal: video.isOwned(),
|
isLocal: video.isOwned(),
|
||||||
duration: video.duration,
|
duration: video.duration,
|
||||||
views: video.views,
|
views: video.views,
|
||||||
|
|
Loading…
Reference in New Issue