triangle-types 1.0.163 → 1.0.164

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,8 @@ export declare class FederalCensusCounty {
5
5
  readonly county_id: string;
6
6
  readonly state_id: StateID;
7
7
  readonly name: string;
8
+ readonly county_type_id: string;
9
+ readonly function_type_id: string;
8
10
  constructor(federal_census_county: any);
9
11
  static is(federal_census_county: any): federal_census_county is FederalCensusCounty;
10
12
  }
@@ -5,6 +5,8 @@ export class FederalCensusCounty {
5
5
  county_id;
6
6
  state_id;
7
7
  name;
8
+ county_type_id;
9
+ function_type_id;
8
10
  constructor(federal_census_county) {
9
11
  if (!FederalCensusCounty.is(federal_census_county)) {
10
12
  throw Error("Invalid input.");
@@ -14,6 +16,8 @@ export class FederalCensusCounty {
14
16
  this.county_id = federal_census_county.county_id;
15
17
  this.state_id = federal_census_county.state_id;
16
18
  this.name = federal_census_county.name;
19
+ this.county_type_id = federal_census_county.county_type_id;
20
+ this.function_type_id = federal_census_county.function_type_id;
17
21
  }
18
22
  static is(federal_census_county) {
19
23
  return (federal_census_county !== undefined &&
@@ -21,6 +25,8 @@ export class FederalCensusCounty {
21
25
  typeof federal_census_county.federal_census_id === "number" &&
22
26
  typeof federal_census_county.county_id === "string" &&
23
27
  is_state_id(federal_census_county.state_id) &&
24
- typeof federal_census_county.name === "string");
28
+ typeof federal_census_county.name === "string" &&
29
+ typeof federal_census_county.county_type_id === "string" &&
30
+ typeof federal_census_county.function_type_id === "string");
25
31
  }
26
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.163",
3
+ "version": "1.0.164",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -6,6 +6,8 @@ export class FederalCensusCounty {
6
6
  readonly county_id : string
7
7
  readonly state_id : StateID
8
8
  readonly name : string
9
+ readonly county_type_id : string
10
+ readonly function_type_id : string
9
11
 
10
12
  constructor(federal_census_county : any) {
11
13
  if (!FederalCensusCounty.is(federal_census_county)) {
@@ -16,6 +18,8 @@ export class FederalCensusCounty {
16
18
  this.county_id = federal_census_county.county_id
17
19
  this.state_id = federal_census_county.state_id
18
20
  this.name = federal_census_county.name
21
+ this.county_type_id = federal_census_county.county_type_id
22
+ this.function_type_id = federal_census_county.function_type_id
19
23
  }
20
24
 
21
25
  static is(federal_census_county : any) : federal_census_county is FederalCensusCounty {
@@ -25,7 +29,9 @@ export class FederalCensusCounty {
25
29
  typeof federal_census_county.federal_census_id === "number" &&
26
30
  typeof federal_census_county.county_id === "string" &&
27
31
  is_state_id(federal_census_county.state_id) &&
28
- typeof federal_census_county.name === "string"
32
+ typeof federal_census_county.name === "string" &&
33
+ typeof federal_census_county.county_type_id === "string" &&
34
+ typeof federal_census_county.function_type_id === "string"
29
35
  )
30
36
  }
31
37