triangle-types 1.0.234 → 1.0.235
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.
|
@@ -8,7 +8,7 @@ export declare class WebArticleFragment {
|
|
|
8
8
|
readonly max_index: number;
|
|
9
9
|
readonly title: string;
|
|
10
10
|
readonly text: string;
|
|
11
|
-
readonly vector
|
|
11
|
+
readonly vector?: number[];
|
|
12
12
|
readonly [x: string]: any;
|
|
13
13
|
constructor(web_article_fragment: WebArticleFragment);
|
|
14
14
|
static is(web_article_fragment: any): web_article_fragment is WebArticleFragment;
|
|
@@ -33,6 +33,6 @@ export class WebArticleFragment {
|
|
|
33
33
|
typeof web_article_fragment.max_index === "number" &&
|
|
34
34
|
typeof web_article_fragment.title === "string" &&
|
|
35
35
|
typeof web_article_fragment.text === "string" &&
|
|
36
|
-
Array.isArray(web_article_fragment.vector) && web_article_fragment.vector.every((coordinate) => typeof coordinate === "number"));
|
|
36
|
+
(web_article_fragment.vector === undefined || Array.isArray(web_article_fragment.vector) && web_article_fragment.vector.every((coordinate) => typeof coordinate === "number")));
|
|
37
37
|
}
|
|
38
38
|
}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export class WebArticleFragment {
|
|
|
9
9
|
readonly max_index : number
|
|
10
10
|
readonly title : string
|
|
11
11
|
readonly text : string
|
|
12
|
-
readonly vector : number[]
|
|
12
|
+
readonly vector? : number[]
|
|
13
13
|
readonly [x : string] : any
|
|
14
14
|
|
|
15
15
|
constructor(web_article_fragment : WebArticleFragment) {
|
|
@@ -38,7 +38,7 @@ export class WebArticleFragment {
|
|
|
38
38
|
typeof web_article_fragment.max_index === "number" &&
|
|
39
39
|
typeof web_article_fragment.title === "string" &&
|
|
40
40
|
typeof web_article_fragment.text === "string" &&
|
|
41
|
-
Array.isArray(web_article_fragment.vector) && web_article_fragment.vector.every((coordinate : any) => typeof coordinate === "number")
|
|
41
|
+
(web_article_fragment.vector === undefined || Array.isArray(web_article_fragment.vector) && web_article_fragment.vector.every((coordinate : any) => typeof coordinate === "number"))
|
|
42
42
|
)
|
|
43
43
|
}
|
|
44
44
|
}
|