triangle-types 1.0.378 → 1.0.379
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,3 +1,4 @@
|
|
|
1
|
+
import { FederalElectionCandidate } from "./FederalElectionCandidate.js";
|
|
1
2
|
import { FederalElectionCommittee } from "./FederalElectionCommittee.js";
|
|
2
3
|
export declare class FederalElectionFileExpenditure {
|
|
3
4
|
readonly federal_election_file_id: number;
|
|
@@ -17,6 +18,7 @@ export declare class FederalElectionFileExpenditure {
|
|
|
17
18
|
static is(federal_election_file_expenditure: any): federal_election_file_expenditure is FederalElectionFileExpenditure;
|
|
18
19
|
}
|
|
19
20
|
export declare class FederalElectionFileExpenditureAux extends FederalElectionFileExpenditure {
|
|
21
|
+
readonly federal_election_candidate: FederalElectionCandidate;
|
|
20
22
|
readonly federal_election_committee: FederalElectionCommittee;
|
|
21
23
|
constructor(federal_election_file_expenditure: any);
|
|
22
24
|
static is(federal_election_file_expenditure: any): federal_election_file_expenditure is FederalElectionFileExpenditureAux;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FederalElectionCandidate } from "./FederalElectionCandidate.js";
|
|
1
2
|
import { FederalElectionCommittee } from "./FederalElectionCommittee.js";
|
|
2
3
|
export class FederalElectionFileExpenditure {
|
|
3
4
|
federal_election_file_id;
|
|
@@ -46,16 +47,19 @@ export class FederalElectionFileExpenditure {
|
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
export class FederalElectionFileExpenditureAux extends FederalElectionFileExpenditure {
|
|
50
|
+
federal_election_candidate;
|
|
49
51
|
federal_election_committee;
|
|
50
52
|
constructor(federal_election_file_expenditure) {
|
|
51
53
|
if (!FederalElectionFileExpenditureAux.is(federal_election_file_expenditure)) {
|
|
52
54
|
throw Error("Invalid input.");
|
|
53
55
|
}
|
|
54
56
|
super(federal_election_file_expenditure);
|
|
57
|
+
this.federal_election_candidate = federal_election_file_expenditure.federal_election_candidate;
|
|
55
58
|
this.federal_election_committee = federal_election_file_expenditure.federal_election_committee;
|
|
56
59
|
}
|
|
57
60
|
static is(federal_election_file_expenditure) {
|
|
58
61
|
return (FederalElectionFileExpenditure.is(federal_election_file_expenditure) &&
|
|
62
|
+
FederalElectionCandidate.is(federal_election_file_expenditure.federal_election_candidate) &&
|
|
59
63
|
FederalElectionCommittee.is(federal_election_file_expenditure.federal_election_committee));
|
|
60
64
|
}
|
|
61
65
|
}
|
package/package.json
CHANGED
|
@@ -56,6 +56,7 @@ export class FederalElectionFileExpenditure {
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export class FederalElectionFileExpenditureAux extends FederalElectionFileExpenditure {
|
|
59
|
+
readonly federal_election_candidate : FederalElectionCandidate
|
|
59
60
|
readonly federal_election_committee : FederalElectionCommittee
|
|
60
61
|
|
|
61
62
|
constructor(federal_election_file_expenditure : any) {
|
|
@@ -63,12 +64,14 @@ export class FederalElectionFileExpenditureAux extends FederalElectionFileExpend
|
|
|
63
64
|
throw Error("Invalid input.")
|
|
64
65
|
}
|
|
65
66
|
super(federal_election_file_expenditure)
|
|
67
|
+
this.federal_election_candidate = federal_election_file_expenditure.federal_election_candidate
|
|
66
68
|
this.federal_election_committee = federal_election_file_expenditure.federal_election_committee
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
static is(federal_election_file_expenditure : any) : federal_election_file_expenditure is FederalElectionFileExpenditureAux {
|
|
70
72
|
return (
|
|
71
73
|
FederalElectionFileExpenditure.is(federal_election_file_expenditure) &&
|
|
74
|
+
FederalElectionCandidate.is(federal_election_file_expenditure.federal_election_candidate) &&
|
|
72
75
|
FederalElectionCommittee.is(federal_election_file_expenditure.federal_election_committee)
|
|
73
76
|
)
|
|
74
77
|
}
|