triangle-types 1.0.56 → 1.0.57
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,8 +1,8 @@
|
|
|
1
1
|
import { StateID } from "../State.js";
|
|
2
2
|
export declare class StateLegislatureDistrict {
|
|
3
3
|
readonly state_legislature_district_id: string;
|
|
4
|
-
readonly legislature_id: number;
|
|
5
4
|
readonly state_id: StateID;
|
|
5
|
+
readonly legislature_id: number;
|
|
6
6
|
readonly chamber_id: string;
|
|
7
7
|
readonly district_id: number;
|
|
8
8
|
constructor(state_legislature_district: any);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { is_state_id } from "../State.js";
|
|
2
2
|
export class StateLegislatureDistrict {
|
|
3
3
|
state_legislature_district_id;
|
|
4
|
-
legislature_id;
|
|
5
4
|
state_id;
|
|
5
|
+
legislature_id;
|
|
6
6
|
chamber_id;
|
|
7
7
|
district_id;
|
|
8
8
|
constructor(state_legislature_district) {
|
|
@@ -10,16 +10,16 @@ export class StateLegislatureDistrict {
|
|
|
10
10
|
throw Error("Invalid input.");
|
|
11
11
|
}
|
|
12
12
|
this.state_legislature_district_id = state_legislature_district.state_legislature_district_id;
|
|
13
|
-
this.legislature_id = state_legislature_district.legislature_id;
|
|
14
13
|
this.state_id = state_legislature_district.state_id;
|
|
14
|
+
this.legislature_id = state_legislature_district.legislature_id;
|
|
15
15
|
this.chamber_id = state_legislature_district.chamber_id;
|
|
16
16
|
this.district_id = state_legislature_district.district_id;
|
|
17
17
|
}
|
|
18
18
|
static is(state_legislature_district) {
|
|
19
19
|
return (state_legislature_district !== undefined &&
|
|
20
20
|
typeof state_legislature_district.state_legislature_district_id === "string" &&
|
|
21
|
-
typeof state_legislature_district.legislature_id === "number" &&
|
|
22
21
|
is_state_id(state_legislature_district.state_id) &&
|
|
22
|
+
typeof state_legislature_district.legislature_id === "number" &&
|
|
23
23
|
typeof state_legislature_district.chamber_id === "string" &&
|
|
24
24
|
typeof state_legislature_district.district_id === "number");
|
|
25
25
|
}
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@ import { is_state_id, StateID } from "../State"
|
|
|
2
2
|
|
|
3
3
|
export class StateLegislatureDistrict {
|
|
4
4
|
readonly state_legislature_district_id : string
|
|
5
|
-
readonly legislature_id : number
|
|
6
5
|
readonly state_id : StateID
|
|
6
|
+
readonly legislature_id : number
|
|
7
7
|
readonly chamber_id : string
|
|
8
8
|
readonly district_id : number
|
|
9
9
|
|
|
@@ -13,8 +13,8 @@ export class StateLegislatureDistrict {
|
|
|
13
13
|
throw Error("Invalid input.")
|
|
14
14
|
}
|
|
15
15
|
this.state_legislature_district_id = state_legislature_district.state_legislature_district_id
|
|
16
|
-
this.legislature_id = state_legislature_district.legislature_id
|
|
17
16
|
this.state_id = state_legislature_district.state_id
|
|
17
|
+
this.legislature_id = state_legislature_district.legislature_id
|
|
18
18
|
this.chamber_id = state_legislature_district.chamber_id
|
|
19
19
|
this.district_id = state_legislature_district.district_id
|
|
20
20
|
}
|
|
@@ -23,8 +23,8 @@ export class StateLegislatureDistrict {
|
|
|
23
23
|
return (
|
|
24
24
|
state_legislature_district !== undefined &&
|
|
25
25
|
typeof state_legislature_district.state_legislature_district_id === "string" &&
|
|
26
|
-
typeof state_legislature_district.legislature_id === "number" &&
|
|
27
26
|
is_state_id(state_legislature_district.state_id) &&
|
|
27
|
+
typeof state_legislature_district.legislature_id === "number" &&
|
|
28
28
|
typeof state_legislature_district.chamber_id === "string" &&
|
|
29
29
|
typeof state_legislature_district.district_id === "number"
|
|
30
30
|
)
|