triangle-types 1.0.128 → 1.0.129

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,7 +1,7 @@
1
1
  export declare class WWWArticle {
2
2
  readonly www_article_id: string;
3
3
  readonly url: string;
4
- readonly title: string;
4
+ readonly title?: string;
5
5
  readonly date?: string;
6
6
  readonly relevance?: string;
7
7
  readonly s3_id_html?: string;
@@ -22,7 +22,7 @@ export class WWWArticle {
22
22
  return (www_article !== undefined &&
23
23
  typeof www_article.www_article_id === "string" &&
24
24
  typeof www_article.url === "string" &&
25
- typeof www_article.title === "string" &&
25
+ (www_article.title === undefined || typeof www_article.title === "string") &&
26
26
  (www_article.date === undefined || typeof www_article.date === "string") &&
27
27
  (www_article.relevance === undefined || typeof www_article.relevance === "string") &&
28
28
  (www_article.s3_id_html === undefined || typeof www_article.s3_id_html === "string") &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-types",
3
- "version": "1.0.128",
3
+ "version": "1.0.129",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "scripts": {
@@ -1,7 +1,7 @@
1
1
  export class WWWArticle {
2
2
  readonly www_article_id : string
3
3
  readonly url : string
4
- readonly title : string
4
+ readonly title? : string
5
5
  readonly date? : string
6
6
  readonly relevance? : string
7
7
  readonly s3_id_html? : string
@@ -25,7 +25,7 @@ export class WWWArticle {
25
25
  www_article !== undefined &&
26
26
  typeof www_article.www_article_id === "string" &&
27
27
  typeof www_article.url === "string" &&
28
- typeof www_article.title === "string" &&
28
+ (www_article.title === undefined || typeof www_article.title === "string") &&
29
29
  (www_article.date === undefined || typeof www_article.date === "string") &&
30
30
  (www_article.relevance === undefined || typeof www_article.relevance === "string") &&
31
31
  (www_article.s3_id_html === undefined || typeof www_article.s3_id_html === "string") &&