triangle-types 1.0.297 → 1.0.298
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LALFileVoter } from "../lal/LALFileVoter.js";
|
|
2
1
|
import { StateID } from "../jurisdictions/State.js";
|
|
3
2
|
import { StateVoterTarget } from "./StateVoterTarget.js";
|
|
4
3
|
import { VoterPartyTypeID } from "./Voter.js";
|
|
@@ -29,7 +28,6 @@ export declare class StateVoter {
|
|
|
29
28
|
static is(state_voter: any): state_voter is StateVoter;
|
|
30
29
|
}
|
|
31
30
|
export declare class StateVoterAux extends StateVoter {
|
|
32
|
-
readonly lal_file_voter: LALFileVoter;
|
|
33
31
|
readonly targets: StateVoterTarget[];
|
|
34
32
|
constructor(state_voter: any);
|
|
35
33
|
static is(state_voter: any): state_voter is StateVoter;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { LALFileVoter } from "../lal/LALFileVoter.js";
|
|
2
1
|
import { is_state_id } from "../jurisdictions/State.js";
|
|
3
2
|
import { StateVoterTarget } from "./StateVoterTarget.js";
|
|
4
3
|
import { is_voter_party_type_id } from "./Voter.js";
|
|
@@ -74,19 +73,16 @@ export class StateVoter {
|
|
|
74
73
|
}
|
|
75
74
|
}
|
|
76
75
|
export class StateVoterAux extends StateVoter {
|
|
77
|
-
lal_file_voter;
|
|
78
76
|
targets;
|
|
79
77
|
constructor(state_voter) {
|
|
80
78
|
if (!StateVoterAux.is(state_voter)) {
|
|
81
79
|
throw Error("Invalid input.");
|
|
82
80
|
}
|
|
83
81
|
super(state_voter);
|
|
84
|
-
this.lal_file_voter = state_voter.lal_file_voter;
|
|
85
82
|
this.targets = state_voter.targets;
|
|
86
83
|
}
|
|
87
84
|
static is(state_voter) {
|
|
88
85
|
return (StateVoter.is(state_voter) &&
|
|
89
|
-
LALFileVoter.is(state_voter.lal_file_voter) &&
|
|
90
86
|
Array.isArray(state_voter.targets) && state_voter.targets.every(StateVoterTarget.is));
|
|
91
87
|
}
|
|
92
88
|
}
|
package/package.json
CHANGED
|
@@ -81,7 +81,6 @@ export class StateVoter {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export class StateVoterAux extends StateVoter {
|
|
84
|
-
readonly lal_file_voter : LALFileVoter
|
|
85
84
|
readonly targets : StateVoterTarget[]
|
|
86
85
|
|
|
87
86
|
constructor(state_voter : any) {
|
|
@@ -89,14 +88,12 @@ export class StateVoterAux extends StateVoter {
|
|
|
89
88
|
throw Error("Invalid input.")
|
|
90
89
|
}
|
|
91
90
|
super(state_voter)
|
|
92
|
-
this.lal_file_voter = state_voter.lal_file_voter
|
|
93
91
|
this.targets = state_voter.targets
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
static is(state_voter : any) : state_voter is StateVoter {
|
|
97
95
|
return (
|
|
98
96
|
StateVoter.is(state_voter) &&
|
|
99
|
-
LALFileVoter.is(state_voter.lal_file_voter) &&
|
|
100
97
|
Array.isArray(state_voter.targets) && state_voter.targets.every(StateVoterTarget.is)
|
|
101
98
|
)
|
|
102
99
|
}
|