elections-types 1.0.26 → 1.0.27
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.
|
@@ -30,7 +30,7 @@ export class Article {
|
|
|
30
30
|
typeof article.publish_date === "string" &&
|
|
31
31
|
typeof article.hash === "string" &&
|
|
32
32
|
typeof article.title === "string" &&
|
|
33
|
-
typeof article.publisher === "string" &&
|
|
33
|
+
(article.publisher === undefined || typeof article.publisher === "string") &&
|
|
34
34
|
typeof article.domain === "string" &&
|
|
35
35
|
typeof article.url === "string" &&
|
|
36
36
|
typeof article.fetch_time === "string" &&
|
package/package.json
CHANGED
package/src/types/Article.ts
CHANGED
|
@@ -3,7 +3,7 @@ export class Article {
|
|
|
3
3
|
readonly publish_date : string
|
|
4
4
|
readonly hash : string
|
|
5
5
|
readonly title : string
|
|
6
|
-
readonly publisher : string
|
|
6
|
+
readonly publisher? : string
|
|
7
7
|
readonly domain : string
|
|
8
8
|
readonly url : string
|
|
9
9
|
readonly fetch_time : string
|
|
@@ -33,7 +33,7 @@ export class Article {
|
|
|
33
33
|
typeof article.publish_date === "string" &&
|
|
34
34
|
typeof article.hash === "string" &&
|
|
35
35
|
typeof article.title === "string" &&
|
|
36
|
-
typeof article.publisher === "string" &&
|
|
36
|
+
(article.publisher === undefined || typeof article.publisher === "string") &&
|
|
37
37
|
typeof article.domain === "string" &&
|
|
38
38
|
typeof article.url === "string" &&
|
|
39
39
|
typeof article.fetch_time === "string" &&
|