triangle-types 1.0.168 → 1.0.170
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.
|
@@ -5,6 +5,7 @@ export declare class FederalCongressDistrict {
|
|
|
5
5
|
readonly chamber_id: string;
|
|
6
6
|
readonly state_id: StateID;
|
|
7
7
|
readonly district_id: number;
|
|
8
|
+
readonly name: string;
|
|
8
9
|
readonly s3_id: string;
|
|
9
10
|
constructor(federal_congress_district: any);
|
|
10
11
|
static is(federal_congress_district: any): federal_congress_district is FederalCongressDistrict;
|
|
@@ -5,6 +5,7 @@ export class FederalCongressDistrict {
|
|
|
5
5
|
chamber_id;
|
|
6
6
|
state_id;
|
|
7
7
|
district_id;
|
|
8
|
+
name;
|
|
8
9
|
s3_id;
|
|
9
10
|
constructor(federal_congress_district) {
|
|
10
11
|
if (!FederalCongressDistrict.is(federal_congress_district)) {
|
|
@@ -15,6 +16,7 @@ export class FederalCongressDistrict {
|
|
|
15
16
|
this.chamber_id = federal_congress_district.chamber_id;
|
|
16
17
|
this.state_id = federal_congress_district.state_id;
|
|
17
18
|
this.district_id = federal_congress_district.district_id;
|
|
19
|
+
this.name = federal_congress_district.name;
|
|
18
20
|
this.s3_id = federal_congress_district.s3_id;
|
|
19
21
|
}
|
|
20
22
|
static is(federal_congress_district) {
|
|
@@ -24,6 +26,7 @@ export class FederalCongressDistrict {
|
|
|
24
26
|
typeof federal_congress_district.chamber_id === "string" &&
|
|
25
27
|
is_state_id(federal_congress_district.state_id) &&
|
|
26
28
|
typeof federal_congress_district.district_id === "number" &&
|
|
27
|
-
typeof federal_congress_district.
|
|
29
|
+
typeof federal_congress_district.name === "string" &&
|
|
30
|
+
typeof federal_congress_district.s3_id === "string");
|
|
28
31
|
}
|
|
29
32
|
}
|
package/package.json
CHANGED
|
@@ -6,6 +6,7 @@ export class FederalCongressDistrict {
|
|
|
6
6
|
readonly chamber_id : string
|
|
7
7
|
readonly state_id : StateID
|
|
8
8
|
readonly district_id : number
|
|
9
|
+
readonly name : string
|
|
9
10
|
readonly s3_id : string
|
|
10
11
|
|
|
11
12
|
|
|
@@ -18,6 +19,7 @@ export class FederalCongressDistrict {
|
|
|
18
19
|
this.chamber_id = federal_congress_district.chamber_id
|
|
19
20
|
this.state_id = federal_congress_district.state_id
|
|
20
21
|
this.district_id = federal_congress_district.district_id
|
|
22
|
+
this.name = federal_congress_district.name
|
|
21
23
|
this.s3_id = federal_congress_district.s3_id
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -29,7 +31,8 @@ export class FederalCongressDistrict {
|
|
|
29
31
|
typeof federal_congress_district.chamber_id === "string" &&
|
|
30
32
|
is_state_id(federal_congress_district.state_id) &&
|
|
31
33
|
typeof federal_congress_district.district_id === "number" &&
|
|
32
|
-
typeof federal_congress_district.
|
|
34
|
+
typeof federal_congress_district.name === "string" &&
|
|
35
|
+
typeof federal_congress_district.s3_id === "string"
|
|
33
36
|
)
|
|
34
37
|
}
|
|
35
38
|
|