triangle-types 1.0.192 → 1.0.193
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/FederalCensusBlock.d.ts +1 -1
- package/dist/src/types/federal_census/FederalCensusBlock.js +1 -4
- package/dist/src/types/federal_census/FederalCensusTract.d.ts +1 -1
- package/dist/src/types/federal_census/FederalCensusTract.js +1 -4
- package/package.json +1 -1
- package/src/types/federal_census/FederalCensusBlock.ts +2 -4
- package/src/types/federal_census/FederalCensusTract.ts +2 -4
|
@@ -8,7 +8,7 @@ export declare class FederalCensusBlock {
|
|
|
8
8
|
readonly tract_id: string;
|
|
9
9
|
readonly block_id: string;
|
|
10
10
|
readonly state_id: StateID;
|
|
11
|
-
readonly
|
|
11
|
+
readonly [x: string]: any;
|
|
12
12
|
constructor(federal_census_block: any);
|
|
13
13
|
static is(federal_census_block: any): federal_census_block is FederalCensusBlock;
|
|
14
14
|
}
|
|
@@ -8,7 +8,6 @@ export class FederalCensusBlock {
|
|
|
8
8
|
tract_id;
|
|
9
9
|
block_id;
|
|
10
10
|
state_id;
|
|
11
|
-
name;
|
|
12
11
|
constructor(federal_census_block) {
|
|
13
12
|
if (!FederalCensusBlock.is(federal_census_block)) {
|
|
14
13
|
throw Error("Invalid input.");
|
|
@@ -21,7 +20,6 @@ export class FederalCensusBlock {
|
|
|
21
20
|
this.tract_id = federal_census_block.tract_id;
|
|
22
21
|
this.block_id = federal_census_block.block_id;
|
|
23
22
|
this.state_id = federal_census_block.state_id;
|
|
24
|
-
this.name = federal_census_block.name;
|
|
25
23
|
}
|
|
26
24
|
static is(federal_census_block) {
|
|
27
25
|
return (federal_census_block !== undefined &&
|
|
@@ -32,7 +30,6 @@ export class FederalCensusBlock {
|
|
|
32
30
|
typeof federal_census_block.county_id === "string" &&
|
|
33
31
|
typeof federal_census_block.tract_id === "string" &&
|
|
34
32
|
typeof federal_census_block.block_id === "string" &&
|
|
35
|
-
is_state_id(federal_census_block.state_id)
|
|
36
|
-
typeof federal_census_block.name === "string");
|
|
33
|
+
is_state_id(federal_census_block.state_id));
|
|
37
34
|
}
|
|
38
35
|
}
|
|
@@ -6,7 +6,7 @@ export declare class FederalCensusTract {
|
|
|
6
6
|
readonly county_id: string;
|
|
7
7
|
readonly tract_id: string;
|
|
8
8
|
readonly state_id: StateID;
|
|
9
|
-
readonly
|
|
9
|
+
readonly [x: string]: any;
|
|
10
10
|
constructor(federal_census_tract: any);
|
|
11
11
|
static is(federal_census_tract: any): federal_census_tract is FederalCensusTract;
|
|
12
12
|
}
|
|
@@ -6,7 +6,6 @@ export class FederalCensusTract {
|
|
|
6
6
|
county_id;
|
|
7
7
|
tract_id;
|
|
8
8
|
state_id;
|
|
9
|
-
name;
|
|
10
9
|
constructor(federal_census_tract) {
|
|
11
10
|
if (!FederalCensusTract.is(federal_census_tract)) {
|
|
12
11
|
throw Error("Invalid input.");
|
|
@@ -17,7 +16,6 @@ export class FederalCensusTract {
|
|
|
17
16
|
this.county_id = federal_census_tract.county_id;
|
|
18
17
|
this.tract_id = federal_census_tract.tract_id;
|
|
19
18
|
this.state_id = federal_census_tract.state_id;
|
|
20
|
-
this.name = federal_census_tract.name;
|
|
21
19
|
}
|
|
22
20
|
static is(federal_census_tract) {
|
|
23
21
|
return (federal_census_tract !== undefined &&
|
|
@@ -26,7 +24,6 @@ export class FederalCensusTract {
|
|
|
26
24
|
typeof federal_census_tract.federal_census_id === "number" &&
|
|
27
25
|
typeof federal_census_tract.county_id === "string" &&
|
|
28
26
|
typeof federal_census_tract.tract_id === "string" &&
|
|
29
|
-
is_state_id(federal_census_tract.state_id)
|
|
30
|
-
typeof federal_census_tract.name === "string");
|
|
27
|
+
is_state_id(federal_census_tract.state_id));
|
|
31
28
|
}
|
|
32
29
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export class FederalCensusBlock {
|
|
|
9
9
|
readonly tract_id : string
|
|
10
10
|
readonly block_id : string
|
|
11
11
|
readonly state_id : StateID
|
|
12
|
-
readonly
|
|
12
|
+
readonly [x : string] : any
|
|
13
13
|
|
|
14
14
|
constructor(federal_census_block : any) {
|
|
15
15
|
if (!FederalCensusBlock.is(federal_census_block)) {
|
|
@@ -23,7 +23,6 @@ export class FederalCensusBlock {
|
|
|
23
23
|
this.tract_id = federal_census_block.tract_id
|
|
24
24
|
this.block_id = federal_census_block.block_id
|
|
25
25
|
this.state_id = federal_census_block.state_id
|
|
26
|
-
this.name = federal_census_block.name
|
|
27
26
|
}
|
|
28
27
|
|
|
29
28
|
static is(federal_census_block : any) : federal_census_block is FederalCensusBlock {
|
|
@@ -36,8 +35,7 @@ export class FederalCensusBlock {
|
|
|
36
35
|
typeof federal_census_block.county_id === "string" &&
|
|
37
36
|
typeof federal_census_block.tract_id === "string" &&
|
|
38
37
|
typeof federal_census_block.block_id === "string" &&
|
|
39
|
-
is_state_id(federal_census_block.state_id)
|
|
40
|
-
typeof federal_census_block.name === "string"
|
|
38
|
+
is_state_id(federal_census_block.state_id)
|
|
41
39
|
)
|
|
42
40
|
}
|
|
43
41
|
|
|
@@ -7,7 +7,7 @@ export class FederalCensusTract {
|
|
|
7
7
|
readonly county_id : string
|
|
8
8
|
readonly tract_id : string
|
|
9
9
|
readonly state_id : StateID
|
|
10
|
-
readonly
|
|
10
|
+
readonly [x : string] : any
|
|
11
11
|
|
|
12
12
|
constructor(federal_census_tract : any) {
|
|
13
13
|
if (!FederalCensusTract.is(federal_census_tract)) {
|
|
@@ -19,7 +19,6 @@ export class FederalCensusTract {
|
|
|
19
19
|
this.county_id = federal_census_tract.county_id
|
|
20
20
|
this.tract_id = federal_census_tract.tract_id
|
|
21
21
|
this.state_id = federal_census_tract.state_id
|
|
22
|
-
this.name = federal_census_tract.name
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
static is(federal_census_tract : any) : federal_census_tract is FederalCensusTract {
|
|
@@ -30,8 +29,7 @@ export class FederalCensusTract {
|
|
|
30
29
|
typeof federal_census_tract.federal_census_id === "number" &&
|
|
31
30
|
typeof federal_census_tract.county_id === "string" &&
|
|
32
31
|
typeof federal_census_tract.tract_id === "string" &&
|
|
33
|
-
is_state_id(federal_census_tract.state_id)
|
|
34
|
-
typeof federal_census_tract.name === "string"
|
|
32
|
+
is_state_id(federal_census_tract.state_id)
|
|
35
33
|
)
|
|
36
34
|
}
|
|
37
35
|
|