@types/twit
Advanced tools
Comparing version 2.2.31 to 2.2.32
@@ -17,11 +17,11 @@ // Type definitions for twit 2.2 | ||
declare module 'twit' { | ||
import { IncomingMessage } from 'http'; | ||
import { EventEmitter } from 'events'; | ||
declare module "twit" { | ||
import { IncomingMessage } from "http"; | ||
import { EventEmitter } from "events"; | ||
namespace Twit { | ||
export type StreamEndpoint = 'statuses/filter' | 'statuses/sample' | 'statuses/firehose' | 'user' | 'site'; | ||
export type StreamEndpoint = "statuses/filter" | "statuses/sample" | "statuses/firehose" | "user" | "site"; | ||
export namespace Twitter { | ||
export type ResultType = 'mixed' | 'popular' | 'recent'; | ||
export type ResultType = "mixed" | "popular" | "recent"; | ||
@@ -56,3 +56,3 @@ /** | ||
w: number; | ||
resize: 'crop' | 'fit'; | ||
resize: "crop" | "fit"; | ||
} | ||
@@ -175,3 +175,3 @@ export interface Sizes { | ||
url: string; | ||
'app:id': string; | ||
"app:id": string; | ||
} | ||
@@ -213,3 +213,3 @@ export interface Place { | ||
favorited?: boolean | undefined; | ||
filter_level: 'none' | 'low' | 'medium'; | ||
filter_level: "none" | "low" | "medium"; | ||
full_text?: string | undefined; | ||
@@ -279,3 +279,3 @@ in_reply_to_screen_name?: string | undefined; | ||
interface QuickReply { | ||
type: 'options'; | ||
type: "options"; | ||
options: QuickReplyOption[]; | ||
@@ -285,14 +285,14 @@ } | ||
interface Attachement { | ||
type: 'location' | 'media'; | ||
type: "location" | "media"; | ||
location?: { | ||
type: 'shared_coordinate', | ||
type: "shared_coordinate"; | ||
shared_coordinate: { | ||
coordinates: { | ||
type: 'Point', | ||
coordinates: number[] | ||
} | ||
} | ||
type: "Point"; | ||
coordinates: number[]; | ||
}; | ||
}; | ||
}; | ||
media?: { | ||
id: string | ||
id: string; | ||
}; | ||
@@ -302,7 +302,7 @@ } | ||
interface MessageCreateEvent { | ||
type: 'message_create'; | ||
type: "message_create"; | ||
message_create: { | ||
target: { | ||
recipient_id: string; | ||
}, | ||
}; | ||
message_data: { | ||
@@ -312,3 +312,3 @@ text: string; | ||
attachment?: Attachement; | ||
} | ||
}; | ||
}; | ||
@@ -369,3 +369,3 @@ } | ||
description?: string | undefined; | ||
mode?: 'public' | 'private' | undefined; | ||
mode?: "public" | "private" | undefined; | ||
exclude_reply_user_ids?: string | string[] | undefined; | ||
@@ -372,0 +372,0 @@ attachment_url?: string | undefined; |
{ | ||
"name": "@types/twit", | ||
"version": "2.2.31", | ||
"version": "2.2.32", | ||
"description": "TypeScript definitions for twit", | ||
@@ -61,4 +61,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/twit", | ||
}, | ||
"typesPublisherContentHash": "1d3d66e7e194c3e5aa343a3256e7cbd503dd623ed240f5e2cbf337711460be75", | ||
"typeScriptVersion": "4.1" | ||
"typesPublisherContentHash": "e804ef32e15ce4f79d0b1008addc3a25a4384487c29c7e46e9ebf7a074bb4088", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Sat, 15 Oct 2022 19:02:57 GMT | ||
* Last updated: Tue, 12 Sep 2023 12:34:55 GMT | ||
* Dependencies: [@types/geojson](https://npmjs.com/package/@types/geojson), [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19788