elections-types 1.0.54 → 1.0.55
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,6 +1,9 @@
|
|
|
1
1
|
export declare const form_type_ids: readonly ["F1", "F2", "F3", "F24"];
|
|
2
2
|
export type FormTypeID = typeof form_type_ids[number];
|
|
3
3
|
export declare function is_form_type_id(form_type_id: any): form_type_id is FormTypeID;
|
|
4
|
+
export declare const amendment_type_ids: readonly ["N", "A", "T"];
|
|
5
|
+
export type AmendmentTypeID = typeof amendment_type_ids[number];
|
|
6
|
+
export declare function is_amendment_type_id(amendment_type_id: any): amendment_type_id is AmendmentTypeID;
|
|
4
7
|
export declare const long_form_type_ids: readonly ["F1N", "F1A", "F1T", "F2N", "F2A", "F2T", "F3N", "F3A", "F3T", "F24N", "F24A"];
|
|
5
8
|
export type LongFormTypeID = typeof long_form_type_ids[number];
|
|
6
9
|
export declare function is_long_form_type_id(long_form_type_id: any): long_form_type_id is LongFormTypeID;
|
|
@@ -2,6 +2,10 @@ export const form_type_ids = ["F1", "F2", "F3", "F24"];
|
|
|
2
2
|
export function is_form_type_id(form_type_id) {
|
|
3
3
|
return form_type_ids.includes(form_type_id);
|
|
4
4
|
}
|
|
5
|
+
export const amendment_type_ids = ["N", "A", "T"];
|
|
6
|
+
export function is_amendment_type_id(amendment_type_id) {
|
|
7
|
+
return amendment_type_ids.includes(amendment_type_id);
|
|
8
|
+
}
|
|
5
9
|
export const long_form_type_ids = [
|
|
6
10
|
"F1N", "F1A", "F1T",
|
|
7
11
|
"F2N", "F2A", "F2T",
|
package/package.json
CHANGED
package/src/types/FormTypeID.ts
CHANGED
|
@@ -6,6 +6,14 @@ export function is_form_type_id(form_type_id : any) : form_type_id is FormTypeID
|
|
|
6
6
|
return form_type_ids.includes(form_type_id)
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
+
export const amendment_type_ids = ["N", "A", "T"] as const
|
|
10
|
+
|
|
11
|
+
export type AmendmentTypeID = typeof amendment_type_ids[number]
|
|
12
|
+
|
|
13
|
+
export function is_amendment_type_id(amendment_type_id : any) : amendment_type_id is AmendmentTypeID {
|
|
14
|
+
return amendment_type_ids.includes(amendment_type_id)
|
|
15
|
+
}
|
|
16
|
+
|
|
9
17
|
export const long_form_type_ids = [
|
|
10
18
|
"F1N", "F1A", "F1T",
|
|
11
19
|
"F2N", "F2A", "F2T",
|