triangle-types 1.0.185 → 1.0.186

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.
@@ -4,7 +4,8 @@ import { StateVoterTarget } from "./StateVoterTarget.js";
4
4
  export declare class StateVoter {
5
5
  readonly state_id: StateID;
6
6
  readonly voter_id: string;
7
- readonly lal_file_voter_id: string;
7
+ readonly lal_file_id: string;
8
+ readonly lal_voter_id: string;
8
9
  readonly [x: string]: any;
9
10
  constructor(state_voter: any);
10
11
  static is(state_voter: any): state_voter is StateVoter;
@@ -4,20 +4,23 @@ import { StateVoterTarget } from "./StateVoterTarget.js";
4
4
  export class StateVoter {
5
5
  state_id;
6
6
  voter_id;
7
- lal_file_voter_id;
7
+ lal_file_id;
8
+ lal_voter_id;
8
9
  constructor(state_voter) {
9
10
  if (!StateVoter.is(state_voter)) {
10
11
  throw Error("Invalid input.");
11
12
  }
12
13
  this.state_id = state_voter.state_id;
13
14
  this.voter_id = state_voter.voter_id;
14
- this.lal_file_voter_id = state_voter.lal_file_voter_id;
15
+ this.lal_file_id = state_voter.lal_file_id;
16
+ this.lal_voter_id = state_voter.lal_voter_id;
15
17
  }
16
18
  static is(state_voter) {
17
19
  return (state_voter !== undefined &&
18
20
  is_state_id(state_voter.state_id) &&
19
21
  typeof state_voter.voter_id === "string" &&
20
- typeof state_voter.lal_file_voter_id === "string");
22
+ typeof state_voter.lal_file_id === "string" &&
23
+ typeof state_voter.lal_voter_id === "string");
21
24
  }
22
25
  }
23
26
  export class StateVoterAux extends StateVoter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.185",
3
+ "version": "1.0.186",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -5,7 +5,8 @@ import { StateVoterTarget } from "./StateVoterTarget"
5
5
  export class StateVoter {
6
6
  readonly state_id : StateID
7
7
  readonly voter_id : string
8
- readonly lal_file_voter_id : string
8
+ readonly lal_file_id : string
9
+ readonly lal_voter_id : string
9
10
  readonly [x : string] : any
10
11
 
11
12
  constructor(state_voter : any) {
@@ -14,7 +15,8 @@ export class StateVoter {
14
15
  }
15
16
  this.state_id = state_voter.state_id
16
17
  this.voter_id = state_voter.voter_id
17
- this.lal_file_voter_id = state_voter.lal_file_voter_id
18
+ this.lal_file_id = state_voter.lal_file_id
19
+ this.lal_voter_id = state_voter.lal_voter_id
18
20
  }
19
21
 
20
22
  static is(state_voter : any) : state_voter is StateVoter {
@@ -22,7 +24,8 @@ export class StateVoter {
22
24
  state_voter !== undefined &&
23
25
  is_state_id(state_voter.state_id) &&
24
26
  typeof state_voter.voter_id === "string" &&
25
- typeof state_voter.lal_file_voter_id === "string"
27
+ typeof state_voter.lal_file_id === "string" &&
28
+ typeof state_voter.lal_voter_id === "string"
26
29
  )
27
30
  }
28
31
  }