New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/slack-node

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/slack-node - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

12

slack-node/index.d.ts

@@ -29,8 +29,8 @@ // Type definitions for slack-node v0.1

export interface WebhookOptions {
icon_emoji?: string;
response_type?: string;
channel?: string;
text?: string;
username?: string;
attachments?: any[];
icon_emoji?: string | undefined;
response_type?: string | undefined;
channel?: string | undefined;
text?: string | undefined;
username?: string | undefined;
attachments?: any[] | undefined;
link_names?: any;

@@ -37,0 +37,0 @@ }

{
"name": "@types/slack-node",
"version": "0.1.3",
"version": "0.1.4",
"description": "TypeScript definitions for slack-node",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slack-node",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "8ad94387c58d92fb9bfc3a0e658f7620c609b249bff7d61242d82a5f10518297",
"typeScriptVersion": "3.0"
"typesPublisherContentHash": "a85a1c11c198091bef70808fda531a7d5a87404051898c3a73cac43489b8f656",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,55 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slack-node.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slack-node/index.d.ts)
````ts
// Type definitions for slack-node v0.1
// Project: https://github.com/clonn/slack-node-sdk
// Definitions by: Joshua DeVinney <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import * as request from "request";
declare class Slack {
token: string;
domain: string;
apiMode: boolean;
url: string;
timeout: number;
maxAttempts: number;
constructor(token?: string, domain?: string);
composeUrl(): string;
setWebhook(url: string): this;
detectEmoji(emoji: string): { key: "icon_url" | "icon_emoji", val: string };
webhook(options: Slack.WebhookOptions, callback: (err: any, response: Slack.WebhookResponse) => void): void;
api(method: string, callback: (err: any, response: any) => void): this;
api(method: string, options: any, callback: (err: any, response: any) => void): this;
}
declare namespace Slack {
export interface WebhookOptions {
icon_emoji?: string | undefined;
response_type?: string | undefined;
channel?: string | undefined;
text?: string | undefined;
username?: string | undefined;
attachments?: any[] | undefined;
link_names?: any;
}
export interface WebhookResponse {
status: "fail" | "ok";
statusCode: number;
headers: any;
response: any;
}
}
export = Slack;
````
### Additional Details
* Last updated: Fri, 15 May 2020 13:12:38 GMT
* Last updated: Tue, 06 Jul 2021 16:34:56 GMT
* Dependencies: [@types/request](https://npmjs.com/package/@types/request)

@@ -14,0 +64,0 @@ * Global values: none

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