elections-types 1.0.33 → 1.0.34
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.
|
@@ -7,7 +7,7 @@ export declare class Video {
|
|
|
7
7
|
readonly title: string;
|
|
8
8
|
readonly description: string;
|
|
9
9
|
readonly tags?: string[];
|
|
10
|
-
readonly duration
|
|
10
|
+
readonly duration?: number;
|
|
11
11
|
readonly fetch_time: string;
|
|
12
12
|
constructor(video: any);
|
|
13
13
|
static is(video: any): video is Video;
|
package/dist/src/types/Video.js
CHANGED
|
@@ -34,7 +34,7 @@ export class Video {
|
|
|
34
34
|
typeof video.title === "string" &&
|
|
35
35
|
typeof video.description === "string" &&
|
|
36
36
|
(video.tags === undefined || Array.isArray(video.tags) && video.tags.map((tag) => typeof tag === "string")) &&
|
|
37
|
-
typeof video.duration === "number" && !isNaN(video.duration) &&
|
|
37
|
+
(video.duration === undefined || typeof video.duration === "number" && !isNaN(video.duration)) &&
|
|
38
38
|
typeof video.fetch_time === "string");
|
|
39
39
|
}
|
|
40
40
|
}
|
package/package.json
CHANGED
package/src/types/Video.ts
CHANGED
|
@@ -7,7 +7,7 @@ export class Video {
|
|
|
7
7
|
readonly title : string
|
|
8
8
|
readonly description : string
|
|
9
9
|
readonly tags? : string[]
|
|
10
|
-
readonly duration : number
|
|
10
|
+
readonly duration? : number
|
|
11
11
|
readonly fetch_time : string
|
|
12
12
|
|
|
13
13
|
constructor(video : any) {
|
|
@@ -37,7 +37,7 @@ export class Video {
|
|
|
37
37
|
typeof video.title === "string" &&
|
|
38
38
|
typeof video.description === "string" &&
|
|
39
39
|
(video.tags === undefined || Array.isArray(video.tags) && video.tags.map((tag : any) => typeof tag === "string")) &&
|
|
40
|
-
typeof video.duration === "number" && !isNaN(video.duration) &&
|
|
40
|
+
(video.duration === undefined || typeof video.duration === "number" && !isNaN(video.duration)) &&
|
|
41
41
|
typeof video.fetch_time === "string"
|
|
42
42
|
)
|
|
43
43
|
}
|