elections-types 1.1.18 → 1.1.20

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.
@@ -11,7 +11,7 @@ export declare class TwitterUser {
11
11
  readonly is_parody: boolean;
12
12
  readonly subscription_type_id: string;
13
13
  readonly verification_type_id: string;
14
- readonly entities: string;
14
+ readonly entities: string | undefined;
15
15
  constructor(twitter_user: TwitterUser);
16
16
  static is(twitter_user: any): twitter_user is TwitterUser;
17
17
  }
@@ -37,13 +37,13 @@ export class TwitterUser {
37
37
  typeof twitter_user.name === "string" &&
38
38
  typeof twitter_user.url === "string" &&
39
39
  typeof twitter_user.description === "string" &&
40
- typeof twitter_user.location === "string" &&
40
+ (twitter_user.location === undefined || typeof twitter_user.location === "string") &&
41
41
  typeof twitter_user.create_time === "string" &&
42
42
  (twitter_user.affiliated_twitter_user_id === undefined || typeof twitter_user.affiliated_twitter_user_id == "string") &&
43
43
  typeof twitter_user.is_protected === "boolean" &&
44
44
  typeof twitter_user.is_parody === "boolean" &&
45
45
  typeof twitter_user.subscription_type_id === "string" &&
46
46
  typeof twitter_user.verification_type_id === "string" &&
47
- typeof twitter_user.entities === "string");
47
+ (twitter_user.entities === undefined || typeof twitter_user.entities === "string"));
48
48
  }
49
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -11,7 +11,7 @@ export class TwitterUser {
11
11
  readonly is_parody : boolean
12
12
  readonly subscription_type_id : string
13
13
  readonly verification_type_id : string
14
- readonly entities : string
14
+ readonly entities : string | undefined
15
15
 
16
16
  constructor(twitter_user : TwitterUser) {
17
17
  if (!TwitterUser.is(twitter_user)) {
@@ -40,14 +40,14 @@ export class TwitterUser {
40
40
  typeof twitter_user.name === "string" &&
41
41
  typeof twitter_user.url === "string" &&
42
42
  typeof twitter_user.description === "string" &&
43
- typeof twitter_user.location === "string" &&
43
+ (twitter_user.location === undefined || typeof twitter_user.location === "string") &&
44
44
  typeof twitter_user.create_time === "string" &&
45
45
  (twitter_user.affiliated_twitter_user_id === undefined || typeof twitter_user.affiliated_twitter_user_id == "string") &&
46
46
  typeof twitter_user.is_protected === "boolean" &&
47
47
  typeof twitter_user.is_parody === "boolean" &&
48
48
  typeof twitter_user.subscription_type_id === "string" &&
49
49
  typeof twitter_user.verification_type_id === "string" &&
50
- typeof twitter_user.entities === "string"
50
+ (twitter_user.entities === undefined || typeof twitter_user.entities === "string")
51
51
  )
52
52
  }
53
53
  }