triangle-types 1.0.221 → 1.0.222
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,7 @@ export declare class YoutubeVideo {
|
|
|
6
6
|
readonly title: string;
|
|
7
7
|
readonly description: string;
|
|
8
8
|
readonly duration?: number;
|
|
9
|
-
readonly
|
|
9
|
+
readonly s3_id_json?: string;
|
|
10
10
|
readonly [x: string]: any;
|
|
11
11
|
constructor(youtube_video: YoutubeVideo);
|
|
12
12
|
static is(youtube_video: any): youtube_video is YoutubeVideo;
|
|
@@ -6,7 +6,7 @@ export class YoutubeVideo {
|
|
|
6
6
|
title;
|
|
7
7
|
description;
|
|
8
8
|
duration;
|
|
9
|
-
|
|
9
|
+
s3_id_json;
|
|
10
10
|
constructor(youtube_video) {
|
|
11
11
|
if (!YoutubeVideo.is(youtube_video)) {
|
|
12
12
|
throw Error("Invalid input.");
|
|
@@ -17,7 +17,7 @@ export class YoutubeVideo {
|
|
|
17
17
|
this.title = youtube_video.title;
|
|
18
18
|
this.description = youtube_video.description;
|
|
19
19
|
this.duration = youtube_video.duration;
|
|
20
|
-
this.
|
|
20
|
+
this.s3_id_json = youtube_video.s3_id_json;
|
|
21
21
|
}
|
|
22
22
|
static is(youtube_video) {
|
|
23
23
|
return (youtube_video !== undefined &&
|
|
@@ -27,7 +27,7 @@ export class YoutubeVideo {
|
|
|
27
27
|
typeof youtube_video.title === "string" &&
|
|
28
28
|
typeof youtube_video.description === "string" &&
|
|
29
29
|
(youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
|
|
30
|
-
(youtube_video.
|
|
30
|
+
(youtube_video.s3_id_json === undefined || typeof youtube_video.s3_id_json === "string"));
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
export class YoutubeVideoAux extends YoutubeVideo {
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ export class YoutubeVideo {
|
|
|
7
7
|
readonly title : string
|
|
8
8
|
readonly description : string
|
|
9
9
|
readonly duration? : number
|
|
10
|
-
readonly
|
|
10
|
+
readonly s3_id_json? : string
|
|
11
11
|
readonly [x : string] : any
|
|
12
12
|
|
|
13
13
|
constructor(youtube_video : YoutubeVideo) {
|
|
@@ -20,7 +20,7 @@ export class YoutubeVideo {
|
|
|
20
20
|
this.title = youtube_video.title
|
|
21
21
|
this.description = youtube_video.description
|
|
22
22
|
this.duration = youtube_video.duration
|
|
23
|
-
this.
|
|
23
|
+
this.s3_id_json = youtube_video.s3_id_json
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
static is(youtube_video : any) : youtube_video is YoutubeVideo {
|
|
@@ -32,7 +32,7 @@ export class YoutubeVideo {
|
|
|
32
32
|
typeof youtube_video.title === "string" &&
|
|
33
33
|
typeof youtube_video.description === "string" &&
|
|
34
34
|
(youtube_video.duration === undefined || typeof youtube_video.duration === "number" && !isNaN(youtube_video.duration)) &&
|
|
35
|
-
(youtube_video.
|
|
35
|
+
(youtube_video.s3_id_json === undefined || typeof youtube_video.s3_id_json === "string")
|
|
36
36
|
)
|
|
37
37
|
}
|
|
38
38
|
}
|