triangle-types 1.0.35 → 1.0.36
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.
|
@@ -14,6 +14,11 @@ export declare class FederalCongressBillDocumentFragment extends Fragment {
|
|
|
14
14
|
constructor(fragment: FederalCongressBillDocumentFragment);
|
|
15
15
|
static is(fragment: any): fragment is FederalCongressBillDocumentFragment;
|
|
16
16
|
}
|
|
17
|
+
export declare class LegistarDocumentFragment extends Fragment {
|
|
18
|
+
readonly legistar_document_id: string;
|
|
19
|
+
constructor(fragment: LegistarDocumentFragment);
|
|
20
|
+
static is(fragment: any): fragment is LegistarDocumentFragment;
|
|
21
|
+
}
|
|
17
22
|
export declare class PressArticleTagFragment extends Fragment {
|
|
18
23
|
readonly press_article_id: string;
|
|
19
24
|
readonly tag_id: string;
|
|
@@ -40,6 +40,20 @@ export class FederalCongressBillDocumentFragment extends Fragment {
|
|
|
40
40
|
typeof fragment.federal_congress_bill_document_id === "string");
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
+
export class LegistarDocumentFragment extends Fragment {
|
|
44
|
+
legistar_document_id;
|
|
45
|
+
constructor(fragment) {
|
|
46
|
+
if (!LegistarDocumentFragment.is(fragment)) {
|
|
47
|
+
throw Error("Invalid input.");
|
|
48
|
+
}
|
|
49
|
+
super(fragment);
|
|
50
|
+
this.legistar_document_id = fragment.legistar_document_id;
|
|
51
|
+
}
|
|
52
|
+
static is(fragment) {
|
|
53
|
+
return (Fragment.is(fragment) &&
|
|
54
|
+
typeof fragment.legistar_document_id === "string");
|
|
55
|
+
}
|
|
56
|
+
}
|
|
43
57
|
export class PressArticleTagFragment extends Fragment {
|
|
44
58
|
press_article_id;
|
|
45
59
|
tag_id;
|
package/package.json
CHANGED
|
@@ -51,6 +51,25 @@ export class FederalCongressBillDocumentFragment extends Fragment {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export class LegistarDocumentFragment extends Fragment {
|
|
55
|
+
readonly legistar_document_id : string
|
|
56
|
+
|
|
57
|
+
constructor(fragment : LegistarDocumentFragment) {
|
|
58
|
+
if (!LegistarDocumentFragment.is(fragment)) {
|
|
59
|
+
throw Error("Invalid input.")
|
|
60
|
+
}
|
|
61
|
+
super(fragment)
|
|
62
|
+
this.legistar_document_id = fragment.legistar_document_id
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static is(fragment : any) : fragment is LegistarDocumentFragment {
|
|
66
|
+
return (
|
|
67
|
+
Fragment.is(fragment) &&
|
|
68
|
+
typeof fragment.legistar_document_id === "string"
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
54
73
|
export class PressArticleTagFragment extends Fragment {
|
|
55
74
|
readonly press_article_id : string
|
|
56
75
|
readonly tag_id : string
|