triangle-types 1.0.46 → 1.0.47
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.
|
@@ -102,9 +102,9 @@ export class Voter {
|
|
|
102
102
|
typeof voter.address_mail_city === "string" &&
|
|
103
103
|
typeof voter.address_mail_state_id === "string" &&
|
|
104
104
|
typeof voter.address_mail_zip === "string" &&
|
|
105
|
-
typeof voter.federal_house_district === "number" &&
|
|
106
|
-
typeof voter.state_house_district === "number" &&
|
|
107
|
-
typeof voter.state_senate_district === "number" &&
|
|
105
|
+
typeof voter.federal_house_district === "number" && !isNaN(voter.federal_house_district) &&
|
|
106
|
+
typeof voter.state_house_district === "number" && !isNaN(voter.state_house_district) &&
|
|
107
|
+
typeof voter.state_senate_district === "number" && !isNaN(voter.state_senate_district) &&
|
|
108
108
|
(voter.occupation_group === undefined || typeof voter.occupation_group === "string") &&
|
|
109
109
|
(voter.occupation_description === undefined || typeof voter.occupation_description === "string") &&
|
|
110
110
|
(voter.phone_home === undefined || typeof voter.phone_home === "string") &&
|
package/package.json
CHANGED
package/src/types/prism/Voter.ts
CHANGED
|
@@ -106,9 +106,9 @@ export class Voter {
|
|
|
106
106
|
typeof voter.address_mail_city === "string" &&
|
|
107
107
|
typeof voter.address_mail_state_id === "string" &&
|
|
108
108
|
typeof voter.address_mail_zip === "string" &&
|
|
109
|
-
typeof voter.federal_house_district === "number" &&
|
|
110
|
-
typeof voter.state_house_district === "number" &&
|
|
111
|
-
typeof voter.state_senate_district === "number" &&
|
|
109
|
+
typeof voter.federal_house_district === "number" && !isNaN(voter.federal_house_district) &&
|
|
110
|
+
typeof voter.state_house_district === "number" && !isNaN(voter.state_house_district) &&
|
|
111
|
+
typeof voter.state_senate_district === "number" && !isNaN(voter.state_senate_district) &&
|
|
112
112
|
(voter.occupation_group === undefined || typeof voter.occupation_group === "string") &&
|
|
113
113
|
(voter.occupation_description === undefined || typeof voter.occupation_description === "string") &&
|
|
114
114
|
(voter.phone_home === undefined || typeof voter.phone_home === "string") &&
|