triangle-types 1.0.195 → 1.0.196
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.
|
@@ -25,7 +25,7 @@ export class Scout {
|
|
|
25
25
|
return (scout !== undefined &&
|
|
26
26
|
typeof scout.scout_id === "string" &&
|
|
27
27
|
// is_scout_type_id(scout.scout_type_id) &&
|
|
28
|
-
typeof scout.name === "string" &&
|
|
28
|
+
(scout.name === undefined || typeof scout.name === "string") &&
|
|
29
29
|
(scout.ballotpedia_article_id === undefined || typeof scout.ballotpedia_article_id === "string") &&
|
|
30
30
|
(scout.wikipedia_article_id === undefined || typeof scout.wikipedia_article_id === "string") &&
|
|
31
31
|
(scout.s3_id_img === undefined || typeof scout.s3_id_img === "string"));
|
package/package.json
CHANGED
package/src/types/scout/Scout.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { StateID } from "../regions/State"
|
|
|
12
12
|
export class Scout {
|
|
13
13
|
readonly scout_id : string
|
|
14
14
|
// readonly scout_type_id : ScoutTypeID
|
|
15
|
-
readonly name : string
|
|
15
|
+
readonly name? : string
|
|
16
16
|
readonly ballotpedia_article_id? : string
|
|
17
17
|
readonly wikipedia_article_id? : string
|
|
18
18
|
readonly s3_id_img? : string
|
|
@@ -35,7 +35,7 @@ export class Scout {
|
|
|
35
35
|
scout !== undefined &&
|
|
36
36
|
typeof scout.scout_id === "string" &&
|
|
37
37
|
// is_scout_type_id(scout.scout_type_id) &&
|
|
38
|
-
typeof scout.name === "string" &&
|
|
38
|
+
(scout.name === undefined || typeof scout.name === "string") &&
|
|
39
39
|
(scout.ballotpedia_article_id === undefined || typeof scout.ballotpedia_article_id === "string") &&
|
|
40
40
|
(scout.wikipedia_article_id === undefined || typeof scout.wikipedia_article_id === "string") &&
|
|
41
41
|
(scout.s3_id_img === undefined || typeof scout.s3_id_img === "string")
|