triangle-types 1.0.211 → 1.0.212

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.
@@ -9,8 +9,8 @@ export declare class TwitterUser {
9
9
  readonly affiliated_twitter_user_id?: string;
10
10
  readonly is_protected: boolean;
11
11
  readonly is_parody: boolean;
12
- readonly subscription_type_id: string;
13
- readonly verification_type_id: string;
12
+ readonly subscription_type_id?: string;
13
+ readonly verification_type_id?: string;
14
14
  readonly entities?: string;
15
15
  readonly scout_id?: string;
16
16
  constructor(twitter_user: TwitterUser);
@@ -44,8 +44,8 @@ export class TwitterUser {
44
44
  (twitter_user.affiliated_twitter_user_id === undefined || typeof twitter_user.affiliated_twitter_user_id == "string") &&
45
45
  typeof twitter_user.is_protected === "boolean" &&
46
46
  typeof twitter_user.is_parody === "boolean" &&
47
- typeof twitter_user.subscription_type_id === "string" &&
48
- typeof twitter_user.verification_type_id === "string" &&
47
+ (twitter_user.subscription_type_id === undefined || typeof twitter_user.subscription_type_id === "string") &&
48
+ (twitter_user.verification_type_id === undefined || typeof twitter_user.verification_type_id === "string") &&
49
49
  (twitter_user.entities === undefined || typeof twitter_user.entities === "string") &&
50
50
  (twitter_user.scout_id === undefined || typeof twitter_user.scout_id === "string"));
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.211",
3
+ "version": "1.0.212",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -9,8 +9,8 @@ export class TwitterUser {
9
9
  readonly affiliated_twitter_user_id? : string
10
10
  readonly is_protected : boolean
11
11
  readonly is_parody : boolean
12
- readonly subscription_type_id : string
13
- readonly verification_type_id : string
12
+ readonly subscription_type_id? : string
13
+ readonly verification_type_id? : string
14
14
  readonly entities? : string
15
15
  readonly scout_id? : string
16
16
 
@@ -47,8 +47,8 @@ export class TwitterUser {
47
47
  (twitter_user.affiliated_twitter_user_id === undefined || typeof twitter_user.affiliated_twitter_user_id == "string") &&
48
48
  typeof twitter_user.is_protected === "boolean" &&
49
49
  typeof twitter_user.is_parody === "boolean" &&
50
- typeof twitter_user.subscription_type_id === "string" &&
51
- typeof twitter_user.verification_type_id === "string" &&
50
+ (twitter_user.subscription_type_id === undefined || typeof twitter_user.subscription_type_id === "string") &&
51
+ (twitter_user.verification_type_id === undefined || typeof twitter_user.verification_type_id === "string") &&
52
52
  (twitter_user.entities === undefined || typeof twitter_user.entities === "string") &&
53
53
  (twitter_user.scout_id === undefined || typeof twitter_user.scout_id === "string")
54
54
  )