elections-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.
|
@@ -5,7 +5,7 @@ export declare class Tweet {
|
|
|
5
5
|
readonly tweet_time: string;
|
|
6
6
|
readonly tweet_content: string;
|
|
7
7
|
readonly quote?: string;
|
|
8
|
-
readonly html
|
|
8
|
+
readonly html: string;
|
|
9
9
|
readonly text: string;
|
|
10
10
|
constructor(tweet: any);
|
|
11
11
|
static is(tweet: any): tweet is Tweet;
|
package/dist/src/types/Tweet.js
CHANGED
|
@@ -28,7 +28,7 @@ export class Tweet {
|
|
|
28
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" &&
|
|
32
32
|
(typeof tweet.text === "string"));
|
|
33
33
|
}
|
|
34
34
|
}
|
package/package.json
CHANGED
package/src/types/Tweet.ts
CHANGED
|
@@ -5,7 +5,7 @@ export class Tweet {
|
|
|
5
5
|
readonly tweet_time : string
|
|
6
6
|
readonly tweet_content : string
|
|
7
7
|
readonly quote? : string
|
|
8
|
-
readonly html
|
|
8
|
+
readonly html : string
|
|
9
9
|
readonly text : string
|
|
10
10
|
|
|
11
11
|
constructor(tweet : any) {
|
|
@@ -31,7 +31,7 @@ export class Tweet {
|
|
|
31
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" &&
|
|
35
35
|
(typeof tweet.text === "string")
|
|
36
36
|
)
|
|
37
37
|
}
|