elections-types 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,6 @@ export class YoutubeVideo {
|
|
|
6
6
|
title;
|
|
7
7
|
description;
|
|
8
8
|
duration;
|
|
9
|
-
fetch_time;
|
|
10
9
|
s3_id;
|
|
11
10
|
constructor(youtube_video) {
|
|
12
11
|
if (!YoutubeVideo.is(youtube_video)) {
|
|
@@ -18,7 +17,6 @@ export class YoutubeVideo {
|
|
|
18
17
|
this.title = youtube_video.title;
|
|
19
18
|
this.description = youtube_video.description;
|
|
20
19
|
this.duration = youtube_video.duration;
|
|
21
|
-
this.fetch_time = youtube_video.fetch_time;
|
|
22
20
|
this.s3_id = youtube_video.s3_id;
|
|
23
21
|
}
|
|
24
22
|
static is(youtube_video) {
|
|
@@ -29,7 +27,6 @@ export class YoutubeVideo {
|
|
|
29
27
|
typeof youtube_video.title === "string" &&
|
|
30
28
|
typeof youtube_video.description === "string" &&
|
|
31
29
|
(youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
|
|
32
|
-
typeof youtube_video.fetch_time === "string" &&
|
|
33
30
|
(youtube_video.s3_id === undefined || typeof youtube_video.s3_id === "string"));
|
|
34
31
|
}
|
|
35
32
|
}
|
package/package.json
CHANGED
|
@@ -7,7 +7,6 @@ export class YoutubeVideo {
|
|
|
7
7
|
readonly title : string
|
|
8
8
|
readonly description : string
|
|
9
9
|
readonly duration? : number
|
|
10
|
-
readonly fetch_time : string
|
|
11
10
|
readonly s3_id? : string
|
|
12
11
|
readonly [x : string] : any
|
|
13
12
|
|
|
@@ -21,7 +20,6 @@ export class YoutubeVideo {
|
|
|
21
20
|
this.title = youtube_video.title
|
|
22
21
|
this.description = youtube_video.description
|
|
23
22
|
this.duration = youtube_video.duration
|
|
24
|
-
this.fetch_time = youtube_video.fetch_time
|
|
25
23
|
this.s3_id = youtube_video.s3_id
|
|
26
24
|
}
|
|
27
25
|
|
|
@@ -34,7 +32,6 @@ export class YoutubeVideo {
|
|
|
34
32
|
typeof youtube_video.title === "string" &&
|
|
35
33
|
typeof youtube_video.description === "string" &&
|
|
36
34
|
(youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
|
|
37
|
-
typeof youtube_video.fetch_time === "string" &&
|
|
38
35
|
(youtube_video.s3_id === undefined || typeof youtube_video.s3_id === "string")
|
|
39
36
|
)
|
|
40
37
|
}
|