triangle-types 1.0.113 → 1.0.114
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.
|
@@ -11,7 +11,7 @@ export declare class Prism {
|
|
|
11
11
|
readonly state_legislature_senate_district_id?: string;
|
|
12
12
|
readonly county_id?: string;
|
|
13
13
|
readonly school_district_id?: string;
|
|
14
|
-
readonly party_type_id
|
|
14
|
+
readonly party_type_id?: VoterPartyTypeID;
|
|
15
15
|
readonly [x: string]: any;
|
|
16
16
|
constructor(prism: any);
|
|
17
17
|
static is(prism: any): prism is Prism;
|
|
@@ -36,7 +36,7 @@ export class Prism {
|
|
|
36
36
|
(prism.state_legislature_senate_district_id === undefined || typeof prism.state_legislature_senate_district_id === "string") &&
|
|
37
37
|
(prism.county_id === undefined || typeof prism.county_id === "string") &&
|
|
38
38
|
(prism.school_district_id === undefined || typeof prism.school_district_id === "string") &&
|
|
39
|
-
is_voter_party_type_id(prism.party_type_id));
|
|
39
|
+
(prism.party_type_id === undefined || is_voter_party_type_id(prism.party_type_id)));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
export class PrismAux extends Prism {
|
package/package.json
CHANGED
package/src/types/prism/Prism.ts
CHANGED
|
@@ -12,7 +12,7 @@ export class Prism {
|
|
|
12
12
|
readonly state_legislature_senate_district_id? : string
|
|
13
13
|
readonly county_id? : string
|
|
14
14
|
readonly school_district_id? : string
|
|
15
|
-
readonly party_type_id : VoterPartyTypeID
|
|
15
|
+
readonly party_type_id? : VoterPartyTypeID
|
|
16
16
|
readonly [x : string] : any
|
|
17
17
|
|
|
18
18
|
constructor(prism : any) {
|
|
@@ -41,7 +41,7 @@ export class Prism {
|
|
|
41
41
|
(prism.state_legislature_senate_district_id === undefined || typeof prism.state_legislature_senate_district_id === "string") &&
|
|
42
42
|
(prism.county_id === undefined || typeof prism.county_id === "string") &&
|
|
43
43
|
(prism.school_district_id === undefined || typeof prism.school_district_id === "string") &&
|
|
44
|
-
is_voter_party_type_id(prism.party_type_id)
|
|
44
|
+
(prism.party_type_id === undefined || is_voter_party_type_id(prism.party_type_id))
|
|
45
45
|
)
|
|
46
46
|
}
|
|
47
47
|
}
|