triangle-types 1.0.84 → 1.0.85

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,7 +1,7 @@
1
1
  import { StateID } from "../State.js";
2
2
  import { VoterTarget } from "./VoterTarget.js";
3
3
  import { VoterTurnout } from "./VoterTurnout.js";
4
- declare const voter_party_type_ids: readonly ["D", "R", "I"];
4
+ export declare const voter_party_type_ids: readonly ["D", "R", "I"];
5
5
  export type VoterPartyTypeID = typeof voter_party_type_ids[number];
6
6
  export declare function is_voter_party_type_id(voter_party_type_id: any): voter_party_type_id is VoterPartyTypeID;
7
7
  export declare class Voter {
@@ -53,4 +53,3 @@ export declare class VoterAux extends Voter {
53
53
  constructor(voter: any);
54
54
  static is(voter: any): voter is Voter;
55
55
  }
56
- export {};
@@ -1,7 +1,7 @@
1
1
  import { is_state_id } from "../State.js";
2
2
  import { VoterTarget } from "./VoterTarget.js";
3
3
  import { VoterTurnout } from "./VoterTurnout.js";
4
- const voter_party_type_ids = ["D", "R", "I"];
4
+ export const voter_party_type_ids = ["D", "R", "I"];
5
5
  export function is_voter_party_type_id(voter_party_type_id) {
6
6
  return voter_party_type_ids.includes(voter_party_type_id);
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -2,7 +2,7 @@ import { is_state_id, StateID } from "../State"
2
2
  import { VoterTarget } from "./VoterTarget"
3
3
  import { VoterTurnout } from "./VoterTurnout"
4
4
 
5
- const voter_party_type_ids = ["D", "R", "I"] as const
5
+ export const voter_party_type_ids = ["D", "R", "I"] as const
6
6
 
7
7
  export type VoterPartyTypeID = typeof voter_party_type_ids[number]
8
8