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.
@@ -1,6 +1,6 @@
1
1
  export declare class Scout {
2
2
  readonly scout_id: string;
3
- readonly name: string;
3
+ readonly name?: string;
4
4
  readonly ballotpedia_article_id?: string;
5
5
  readonly wikipedia_article_id?: string;
6
6
  readonly s3_id_img?: string;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.195",
3
+ "version": "1.0.196",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -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")