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.8.2 to 1.8.3

21

tmi.js/index.d.ts

@@ -6,2 +6,3 @@ // Type definitions for tmi.js 1.8

// Daniel Fischer <https://github.com/d-fischer>
// Samil Deliogullari <https://github.com/samildeli>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -11,3 +12,3 @@ // TypeScript Version: 3.3

// Twitch IRC docs: https://dev.twitch.tv/docs/irc/
// Last updated: 2020/8/12
// Last updated: 2023/2/10

@@ -59,3 +60,3 @@ import { StrictEventEmitter } from "./strict-event-emitter-types";

automod(channel: string, msgID: 'msg_rejected' | 'msg_rejected_mandatory', message: string): void;
ban(channel: string, username: string, reason: string): void;
ban(channel: string, username: string, reason: string, userstate: BanUserstate): void;
chat(channel: string, userstate: ChatUserstate, message: string, self: boolean): void;

@@ -98,3 +99,3 @@ cheer(channel: string, userstate: ChatUserstate, message: string): void;

subscription(channel: string, username: string, methods: SubMethods, message: string, userstate: SubUserstate): void;
timeout(channel: string, username: string, reason: string, duration: number): void;
timeout(channel: string, username: string, reason: string, duration: number, userstate: TimeoutUserstate): void;
unhost(channel: string, viewers: number): void;

@@ -256,2 +257,12 @@ unmod(channel: string, username: string): void;

export interface BanUserstate {
'room-id'?: string | undefined;
'target-user-id'?: string | undefined;
'tmi-sent-ts'?: string | undefined;
}
export interface TimeoutUserstate extends BanUserstate {
"ban-duration"?: string | undefined;
}
export type Userstate = ChatUserstate |

@@ -265,3 +276,5 @@ SubUserstate |

RaidUserstate |
RitualUserstate;
RitualUserstate |
BanUserstate |
TimeoutUserstate;

@@ -268,0 +281,0 @@ export interface EmoteObj {

11

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

@@ -22,2 +22,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tmi.js",

"githubUsername": "d-fischer"
},
{
"name": "Samil Deliogullari",
"url": "https://github.com/samildeli",
"githubUsername": "samildeli"
}

@@ -34,4 +39,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "e804e2ee2f0e64a8751745e510d4aa36212c93d458651115f97cd64d8c00e5be",
"typeScriptVersion": "4.1"
"typesPublisherContentHash": "306c4957f66837b65b86f72ea06a42401f7dd8b0ea8819ddf5b3ae6515b7c2bf",
"typeScriptVersion": "4.2"
}

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

### Additional Details
* Last updated: Fri, 14 Oct 2022 11:32:59 GMT
* Last updated: Fri, 10 Feb 2023 18:02:36 GMT
* Dependencies: none

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

# Credits
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).
These definitions were written by [William Papsco](https://github.com/wpapsco), [Corbin Crutchley](https://github.com/crutchcorn), [Daniel Fischer](https://github.com/d-fischer), and [Samil Deliogullari](https://github.com/samildeli).
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