Socket
Socket
Sign inDemoInstall

@types/tmi.js

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/tmi.js - npm Package Compare versions

Comparing version 1.4.3 to 1.7.0

36

tmi.js/index.d.ts

@@ -1,5 +0,6 @@

// Type definitions for tmi.js 1.4
// Type definitions for tmi.js 1.7
// Project: https://github.com/tmijs/tmi.js
// Definitions by: William Papsco <https://github.com/wpapsco>
// Corbin Crutchley <https://github.com/crutchcorn>
// Daniel Fischer <https://github.com/d-fischer>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -53,2 +54,3 @@ // TypeScript Version: 3.3

anongiftpaidupgrade(channel: string, username: string, userstate: AnonSubGiftUpgradeUserstate): void;
automod(channel: string, msgID: 'msg_rejected' | 'msg_rejected_mandatory', message: string): void;
ban(channel: string, username: string, reason: string): void;

@@ -77,2 +79,3 @@ chat(channel: string, userstate: ChatUserstate, message: string, self: boolean): void;

pong(latency: number): void;
primepaidupgrade(channel: string, username: string, methods: SubMethods, userstate: PrimeUpgradeUserstate): void;
r9kbeta(channel: string, enabled: boolean): void;

@@ -82,2 +85,4 @@ raided(channel: string, username: string, viewers: number): void;

reconnect(): void;
// additional string literals for autocomplete
redeem(channel: string, username: string, rewardType: 'highlighted-message' | 'skip-subs-mode-message' | string, tags: ChatUserstate): void;
resub(channel: string, username: string, months: number, message: string, userstate: SubUserstate, methods: SubMethods): void;

@@ -133,2 +138,7 @@ roomstate(channel: string, state: RoomState): void;

export interface BadgeInfo {
subscriber?: string;
[other: string]: string | undefined;
}
export interface SubMethods {

@@ -148,2 +158,3 @@ prime?: boolean;

badges?: Badges;
'badge-info'?: BadgeInfo;
color?: string;

@@ -157,2 +168,3 @@ "display-name"?: string;

'badges-raw'?: string;
'badge-info-raw'?: string;
"room-id"?: string;

@@ -222,2 +234,6 @@ subscriber?: boolean;

export interface PrimeUpgradeUserstate extends CommonSubUserstate {
"message-type"?: "primepaidupgrade";
}
export interface RaidUserstate extends UserNoticeState {

@@ -345,2 +361,5 @@ "message-type"?: "raid";

debug?: boolean;
joinInterval?: number;
globalDefaultChannel?: string;
messagesLogLevel?: string;
};

@@ -364,9 +383,14 @@ connection?: {

logger?: {
info?: (message: string) => any;
warn?: (message: string) => any;
error?: (message: string) => any;
info: (message: string) => any;
warn: (message: string) => any;
error: (message: string) => any;
};
}
export function client(opts: Options): Client;
export function Client(opts: Options): Client;
export interface ClientConstructor {
(opts: Options): Client;
new (opts: Options): Client;
}
export const client: ClientConstructor;
export const Client: ClientConstructor;

9

tmi.js/package.json
{
"name": "@types/tmi.js",
"version": "1.4.3",
"version": "1.7.0",
"description": "TypeScript definitions for tmi.js",

@@ -16,2 +16,7 @@ "license": "MIT",

"githubUsername": "crutchcorn"
},
{
"name": "Daniel Fischer",
"url": "https://github.com/d-fischer",
"githubUsername": "d-fischer"
}

@@ -28,4 +33,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "e38fd77d241baa28bb866cf926847a65f3b090ef799cc8d2d12d7acb3d2e7d5e",
"typesPublisherContentHash": "efeaab05a915e461986319ea4c329346b9326ba5c55d1720d47a6abccd051f19",
"typeScriptVersion": "3.3"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 31 Dec 2020 16:20:46 GMT
* Last updated: Wed, 06 Jan 2021 22:18:38 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [William Papsco](https://github.com/wpapsco), and [Corbin Crutchley](https://github.com/crutchcorn).
These definitions were written by [William Papsco](https://github.com/wpapsco), [Corbin Crutchley](https://github.com/crutchcorn), and [Daniel Fischer](https://github.com/d-fischer).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc