triangle-types 1.0.303 → 1.0.304
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,8 +1,9 @@
|
|
|
1
1
|
export declare class FederalCongressBillTag {
|
|
2
|
-
readonly
|
|
2
|
+
readonly federal_congress_id: number;
|
|
3
|
+
readonly bill_id: string;
|
|
3
4
|
readonly tag_type_id: string;
|
|
4
5
|
readonly tag_id: string;
|
|
5
6
|
readonly [x: string]: any;
|
|
6
|
-
constructor(
|
|
7
|
-
static is(
|
|
7
|
+
constructor(federal_congress_bill: FederalCongressBillTag);
|
|
8
|
+
static is(federal_congress_bill: any): federal_congress_bill is FederalCongressBillTag;
|
|
8
9
|
}
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
export class FederalCongressBillTag {
|
|
2
|
-
|
|
2
|
+
federal_congress_id;
|
|
3
|
+
bill_id;
|
|
3
4
|
tag_type_id;
|
|
4
5
|
tag_id;
|
|
5
|
-
constructor(
|
|
6
|
-
if (!FederalCongressBillTag.is(
|
|
6
|
+
constructor(federal_congress_bill) {
|
|
7
|
+
if (!FederalCongressBillTag.is(federal_congress_bill)) {
|
|
7
8
|
throw Error("Invalid input.");
|
|
8
9
|
}
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
10
|
+
this.federal_congress_id = federal_congress_bill.federal_congress_id;
|
|
11
|
+
this.bill_id = federal_congress_bill.bill_id;
|
|
12
|
+
this.tag_type_id = federal_congress_bill.tag_type_id;
|
|
13
|
+
this.tag_id = federal_congress_bill.tag_id;
|
|
12
14
|
}
|
|
13
|
-
static is(
|
|
14
|
-
return (
|
|
15
|
-
typeof
|
|
16
|
-
typeof
|
|
17
|
-
typeof
|
|
15
|
+
static is(federal_congress_bill) {
|
|
16
|
+
return (federal_congress_bill !== undefined &&
|
|
17
|
+
typeof federal_congress_bill.federal_congress_id === "number" &&
|
|
18
|
+
typeof federal_congress_bill.bill_id === "string" &&
|
|
19
|
+
typeof federal_congress_bill.tag_type_id === "string" &&
|
|
20
|
+
typeof federal_congress_bill.tag_id === "string");
|
|
18
21
|
}
|
|
19
22
|
}
|
package/package.json
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { FederalCongressBill } from "./FederalCongressBill"
|
|
2
|
-
|
|
3
1
|
export class FederalCongressBillTag {
|
|
4
|
-
readonly
|
|
2
|
+
readonly federal_congress_id : number
|
|
3
|
+
readonly bill_id : string
|
|
5
4
|
readonly tag_type_id : string
|
|
6
5
|
readonly tag_id : string
|
|
7
6
|
readonly [x : string] : any
|
|
8
7
|
|
|
9
|
-
constructor(
|
|
10
|
-
if (!FederalCongressBillTag.is(
|
|
8
|
+
constructor(federal_congress_bill : FederalCongressBillTag) {
|
|
9
|
+
if (!FederalCongressBillTag.is(federal_congress_bill)) {
|
|
11
10
|
throw Error("Invalid input.")
|
|
12
11
|
}
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
12
|
+
this.federal_congress_id = federal_congress_bill.federal_congress_id
|
|
13
|
+
this.bill_id = federal_congress_bill.bill_id
|
|
14
|
+
this.tag_type_id = federal_congress_bill.tag_type_id
|
|
15
|
+
this.tag_id = federal_congress_bill.tag_id
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
static is(
|
|
18
|
+
static is(federal_congress_bill : any) : federal_congress_bill is FederalCongressBillTag {
|
|
19
19
|
return (
|
|
20
|
-
|
|
21
|
-
typeof
|
|
22
|
-
typeof
|
|
23
|
-
typeof
|
|
20
|
+
federal_congress_bill !== undefined &&
|
|
21
|
+
typeof federal_congress_bill.federal_congress_id === "number" &&
|
|
22
|
+
typeof federal_congress_bill.bill_id === "string" &&
|
|
23
|
+
typeof federal_congress_bill.tag_type_id === "string" &&
|
|
24
|
+
typeof federal_congress_bill.tag_id === "string"
|
|
24
25
|
)
|
|
25
26
|
}
|
|
26
27
|
}
|