triangle-types 1.0.304 → 1.0.305
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,6 +9,7 @@ export declare class FederalCongressBill {
|
|
|
9
9
|
readonly title: string;
|
|
10
10
|
readonly modify_time: string;
|
|
11
11
|
readonly intro_date: string;
|
|
12
|
+
readonly federal_congress_member_id?: string;
|
|
12
13
|
constructor(federal_congress_bill: any);
|
|
13
14
|
static is(federal_congress_bill: any): federal_congress_bill is FederalCongressBill;
|
|
14
15
|
}
|
|
@@ -10,6 +10,7 @@ export class FederalCongressBill {
|
|
|
10
10
|
title;
|
|
11
11
|
modify_time;
|
|
12
12
|
intro_date;
|
|
13
|
+
federal_congress_member_id;
|
|
13
14
|
constructor(federal_congress_bill) {
|
|
14
15
|
if (!FederalCongressBill.is(federal_congress_bill)) {
|
|
15
16
|
throw Error("Invalid input.");
|
|
@@ -21,6 +22,7 @@ export class FederalCongressBill {
|
|
|
21
22
|
this.title = federal_congress_bill.title;
|
|
22
23
|
this.modify_time = federal_congress_bill.modify_time;
|
|
23
24
|
this.intro_date = federal_congress_bill.intro_date;
|
|
25
|
+
this.federal_congress_member_id = federal_congress_bill.federal_congress_member_id;
|
|
24
26
|
}
|
|
25
27
|
static is(federal_congress_bill) {
|
|
26
28
|
return (federal_congress_bill !== undefined &&
|
|
@@ -30,6 +32,7 @@ export class FederalCongressBill {
|
|
|
30
32
|
typeof federal_congress_bill.number === "number" &&
|
|
31
33
|
typeof federal_congress_bill.title === "string" &&
|
|
32
34
|
typeof federal_congress_bill.modify_time === "string" &&
|
|
33
|
-
typeof federal_congress_bill.intro_date === "string"
|
|
35
|
+
typeof federal_congress_bill.intro_date === "string" &&
|
|
36
|
+
(federal_congress_bill.federal_congress_member_id === undefined || typeof federal_congress_bill.federal_congress_member_id === "string"));
|
|
34
37
|
}
|
|
35
38
|
}
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export class FederalCongressBill {
|
|
|
14
14
|
readonly title : string
|
|
15
15
|
readonly modify_time : string
|
|
16
16
|
readonly intro_date : string
|
|
17
|
+
readonly federal_congress_member_id? : string
|
|
17
18
|
|
|
18
19
|
constructor(federal_congress_bill : any) {
|
|
19
20
|
if (!FederalCongressBill.is(federal_congress_bill)) {
|
|
@@ -26,6 +27,7 @@ export class FederalCongressBill {
|
|
|
26
27
|
this.title = federal_congress_bill.title
|
|
27
28
|
this.modify_time = federal_congress_bill.modify_time
|
|
28
29
|
this.intro_date = federal_congress_bill.intro_date
|
|
30
|
+
this.federal_congress_member_id = federal_congress_bill.federal_congress_member_id
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
static is(federal_congress_bill : any) : federal_congress_bill is FederalCongressBill {
|
|
@@ -37,7 +39,8 @@ export class FederalCongressBill {
|
|
|
37
39
|
typeof federal_congress_bill.number === "number" &&
|
|
38
40
|
typeof federal_congress_bill.title === "string" &&
|
|
39
41
|
typeof federal_congress_bill.modify_time === "string" &&
|
|
40
|
-
typeof federal_congress_bill.intro_date === "string"
|
|
42
|
+
typeof federal_congress_bill.intro_date === "string" &&
|
|
43
|
+
(federal_congress_bill.federal_congress_member_id === undefined || typeof federal_congress_bill.federal_congress_member_id === "string")
|
|
41
44
|
)
|
|
42
45
|
}
|
|
43
46
|
|