elections-types 1.1.3 → 1.1.5

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.
@@ -2,7 +2,8 @@ export declare class Tweet {
2
2
  readonly tweet_id: string;
3
3
  readonly username: string;
4
4
  readonly url: string;
5
- readonly publish_time: string;
5
+ readonly tweet_time: string;
6
+ readonly tweet_content: string;
6
7
  readonly html: string;
7
8
  constructor(tweet: Tweet);
8
9
  static is(tweet: any): tweet is Tweet;
@@ -2,8 +2,8 @@ export class Tweet {
2
2
  tweet_id;
3
3
  username;
4
4
  url;
5
- publish_time;
6
- // readonly tweet_content : string
5
+ tweet_time;
6
+ tweet_content;
7
7
  // readonly quote? : string
8
8
  html;
9
9
  // readonly text : string
@@ -14,8 +14,8 @@ export class Tweet {
14
14
  this.tweet_id = tweet.tweet_id;
15
15
  this.username = tweet.username;
16
16
  this.url = tweet.url;
17
- this.publish_time = tweet.publish_time;
18
- // this.tweet_content = tweet.tweet_content
17
+ this.tweet_time = tweet.tweet_time;
18
+ this.tweet_content = tweet.tweet_content;
19
19
  // this.quote = tweet.quote
20
20
  this.html = tweet.html;
21
21
  // this.text = tweet.text
@@ -25,7 +25,7 @@ export class Tweet {
25
25
  typeof tweet.tweet_id === "string" &&
26
26
  typeof tweet.username === "string" &&
27
27
  typeof tweet.url === "string" &&
28
- typeof tweet.publish_time === "string" &&
28
+ typeof tweet.tweet_time === "string" &&
29
29
  // typeof tweet.tweet_content === "string" &&
30
30
  // (tweet.quote === undefined || typeof tweet.quote === "string") &&
31
31
  typeof tweet.html === "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elections-types",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -2,8 +2,8 @@ export class Tweet {
2
2
  readonly tweet_id : string
3
3
  readonly username : string
4
4
  readonly url : string
5
- readonly publish_time : string
6
- // readonly tweet_content : string
5
+ readonly tweet_time : string
6
+ readonly tweet_content : string
7
7
  // readonly quote? : string
8
8
  readonly html : string
9
9
  // readonly text : string
@@ -15,8 +15,8 @@ export class Tweet {
15
15
  this.tweet_id = tweet.tweet_id
16
16
  this.username = tweet.username
17
17
  this.url = tweet.url
18
- this.publish_time = tweet.publish_time
19
- // this.tweet_content = tweet.tweet_content
18
+ this.tweet_time = tweet.tweet_time
19
+ this.tweet_content = tweet.tweet_content
20
20
  // this.quote = tweet.quote
21
21
  this.html = tweet.html
22
22
  // this.text = tweet.text
@@ -28,7 +28,7 @@ export class Tweet {
28
28
  typeof tweet.tweet_id === "string" &&
29
29
  typeof tweet.username === "string" &&
30
30
  typeof tweet.url === "string" &&
31
- typeof tweet.publish_time === "string" &&
31
+ typeof tweet.tweet_time === "string" &&
32
32
  // typeof tweet.tweet_content === "string" &&
33
33
  // (tweet.quote === undefined || typeof tweet.quote === "string") &&
34
34
  typeof tweet.html === "string"