triangle-types 1.0.178 → 1.0.179
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.
- package/dist/src/types/federal_census/FederalCensusCounty.d.ts +1 -0
- package/dist/src/types/federal_census/FederalCensusMunicipality.d.ts +1 -0
- package/dist/src/types/federal_census/FederalCensusSchoolDistrict.d.ts +1 -0
- package/dist/src/types/federal_congress/FederalCongressDistrict.d.ts +1 -0
- package/dist/src/types/state_legislature/StateLegislatureDistrict.d.ts +1 -1
- package/dist/src/types/state_legislature/StateLegislatureDistrict.js +1 -4
- package/package.json +1 -1
- package/src/types/federal_census/FederalCensusCounty.ts +1 -0
- package/src/types/federal_census/FederalCensusMunicipality.ts +1 -0
- package/src/types/federal_census/FederalCensusSchoolDistrict.ts +1 -0
- package/src/types/federal_congress/FederalCongressDistrict.ts +1 -0
- package/src/types/state_legislature/StateLegislatureDistrict.ts +2 -4
|
@@ -7,6 +7,7 @@ export declare class FederalCensusCounty {
|
|
|
7
7
|
readonly name: string;
|
|
8
8
|
readonly county_type_id: string;
|
|
9
9
|
readonly function_type_id: string;
|
|
10
|
+
readonly [x: string]: any;
|
|
10
11
|
constructor(federal_census_county: any);
|
|
11
12
|
static is(federal_census_county: any): federal_census_county is FederalCensusCounty;
|
|
12
13
|
}
|
|
@@ -6,6 +6,7 @@ export declare class FederalCensusMunicipality {
|
|
|
6
6
|
readonly state_id: StateID;
|
|
7
7
|
readonly municipality_type_id?: string;
|
|
8
8
|
readonly name: string;
|
|
9
|
+
readonly [x: string]: any;
|
|
9
10
|
constructor(federal_census_municipality: any);
|
|
10
11
|
static is(federal_census_municipality: any): federal_census_municipality is FederalCensusMunicipality;
|
|
11
12
|
}
|
|
@@ -9,6 +9,7 @@ export declare class FederalCensusSchoolDistrict {
|
|
|
9
9
|
readonly state_id: StateID;
|
|
10
10
|
readonly school_district_type_id?: FederalCensusSchoolDistrictTypeID;
|
|
11
11
|
readonly name: string;
|
|
12
|
+
readonly [x: string]: any;
|
|
12
13
|
constructor(federal_census_school_district: any);
|
|
13
14
|
static is(federal_census_school_district: any): federal_census_school_district is FederalCensusSchoolDistrict;
|
|
14
15
|
}
|
|
@@ -7,6 +7,7 @@ export declare class FederalCongressDistrict {
|
|
|
7
7
|
readonly district_id: number;
|
|
8
8
|
readonly name: string;
|
|
9
9
|
readonly s3_id: string;
|
|
10
|
+
readonly [x: string]: any;
|
|
10
11
|
constructor(federal_congress_district: any);
|
|
11
12
|
static is(federal_congress_district: any): federal_congress_district is FederalCongressDistrict;
|
|
12
13
|
}
|
|
@@ -6,7 +6,7 @@ export declare class StateLegislatureDistrict {
|
|
|
6
6
|
readonly chamber_id: string;
|
|
7
7
|
readonly district_id: string;
|
|
8
8
|
readonly name: string;
|
|
9
|
-
readonly
|
|
9
|
+
readonly [x: string]: any;
|
|
10
10
|
constructor(state_legislature_district: any);
|
|
11
11
|
static is(state_legislature_district: any): state_legislature_district is StateLegislatureDistrict;
|
|
12
12
|
}
|
|
@@ -6,7 +6,6 @@ export class StateLegislatureDistrict {
|
|
|
6
6
|
chamber_id;
|
|
7
7
|
district_id;
|
|
8
8
|
name;
|
|
9
|
-
s3_id;
|
|
10
9
|
constructor(state_legislature_district) {
|
|
11
10
|
if (!StateLegislatureDistrict.is(state_legislature_district)) {
|
|
12
11
|
throw Error("Invalid input.");
|
|
@@ -17,7 +16,6 @@ export class StateLegislatureDistrict {
|
|
|
17
16
|
this.chamber_id = state_legislature_district.chamber_id;
|
|
18
17
|
this.district_id = state_legislature_district.district_id;
|
|
19
18
|
this.name = state_legislature_district.name;
|
|
20
|
-
this.s3_id = state_legislature_district.s3_id;
|
|
21
19
|
}
|
|
22
20
|
static is(state_legislature_district) {
|
|
23
21
|
return (state_legislature_district !== undefined &&
|
|
@@ -26,7 +24,6 @@ export class StateLegislatureDistrict {
|
|
|
26
24
|
typeof state_legislature_district.legislature_id === "number" &&
|
|
27
25
|
typeof state_legislature_district.chamber_id === "string" &&
|
|
28
26
|
typeof state_legislature_district.district_id === "string" &&
|
|
29
|
-
typeof state_legislature_district.name === "string"
|
|
30
|
-
typeof state_legislature_district.s3_id === "string");
|
|
27
|
+
typeof state_legislature_district.name === "string");
|
|
31
28
|
}
|
|
32
29
|
}
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ export class FederalCensusCounty {
|
|
|
8
8
|
readonly name : string
|
|
9
9
|
readonly county_type_id : string
|
|
10
10
|
readonly function_type_id : string
|
|
11
|
+
readonly [x : string] : any
|
|
11
12
|
|
|
12
13
|
constructor(federal_census_county : any) {
|
|
13
14
|
if (!FederalCensusCounty.is(federal_census_county)) {
|
|
@@ -7,6 +7,7 @@ export class FederalCensusMunicipality {
|
|
|
7
7
|
readonly state_id : StateID
|
|
8
8
|
readonly municipality_type_id? : string
|
|
9
9
|
readonly name : string
|
|
10
|
+
readonly [x : string] : any
|
|
10
11
|
|
|
11
12
|
constructor(federal_census_municipality : any) {
|
|
12
13
|
if (!FederalCensusMunicipality.is(federal_census_municipality)) {
|
|
@@ -15,6 +15,7 @@ export class FederalCensusSchoolDistrict {
|
|
|
15
15
|
readonly state_id : StateID
|
|
16
16
|
readonly school_district_type_id? : FederalCensusSchoolDistrictTypeID
|
|
17
17
|
readonly name : string
|
|
18
|
+
readonly [x : string] : any
|
|
18
19
|
|
|
19
20
|
constructor(federal_census_school_district : any) {
|
|
20
21
|
if (!FederalCensusSchoolDistrict.is(federal_census_school_district)) {
|
|
@@ -7,7 +7,7 @@ export class StateLegislatureDistrict {
|
|
|
7
7
|
readonly chamber_id : string
|
|
8
8
|
readonly district_id : string
|
|
9
9
|
readonly name : string
|
|
10
|
-
readonly
|
|
10
|
+
readonly [x : string] : any
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
constructor(state_legislature_district : any) {
|
|
@@ -20,7 +20,6 @@ export class StateLegislatureDistrict {
|
|
|
20
20
|
this.chamber_id = state_legislature_district.chamber_id
|
|
21
21
|
this.district_id = state_legislature_district.district_id
|
|
22
22
|
this.name = state_legislature_district.name
|
|
23
|
-
this.s3_id = state_legislature_district.s3_id
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
static is(state_legislature_district : any) : state_legislature_district is StateLegislatureDistrict {
|
|
@@ -31,8 +30,7 @@ export class StateLegislatureDistrict {
|
|
|
31
30
|
typeof state_legislature_district.legislature_id === "number" &&
|
|
32
31
|
typeof state_legislature_district.chamber_id === "string" &&
|
|
33
32
|
typeof state_legislature_district.district_id === "string" &&
|
|
34
|
-
typeof state_legislature_district.name === "string"
|
|
35
|
-
typeof state_legislature_district.s3_id === "string"
|
|
33
|
+
typeof state_legislature_district.name === "string"
|
|
36
34
|
)
|
|
37
35
|
}
|
|
38
36
|
|