# @types/slack-winston

> TypeScript definitions for slack-winston

Latest version **0.0.8** (published 2024-09-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/slack-winston
pnpm add @types/slack-winston
yarn add @types/slack-winston
bun add @types/slack-winston
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.0.8 |
| Published | 2024-09-06 |
| First published | 2017-07-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/slack-winston
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slack-winston
- npm.io page: https://npm.io/package/@types/slack-winston

## Recent versions

- 0.0.8 (latest) — 2024-09-06
- 0.0.7 (ts4.6) — 2023-11-07
- 0.0.4 (ts3.9) — 2021-07-06
- 0.0.3 (ts3.3) — 2020-01-03
- 0.0.2 (ts2.6) — 2018-09-24
- 0.0.6 — 2023-10-18
- 0.0.5 — 2023-09-25
- 0.0.1 — 2018-07-04
- 0.0.0 — 2017-07-25

## README

# Installation
> `npm install --save @types/slack-winston`

# Summary
This package contains type definitions for slack-winston (https://github.com/niftylettuce/slack-winston).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slack-winston.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/slack-winston/index.d.ts)
````ts
export interface SlackTransportOptions {
    domain: string;
    token: string;
    webhook_url: string;
    channel: string;

    username?: string | undefined;
    icon_emoji?: string | undefined;
    message?: string | undefined;
    queueDelay?: number | undefined;

    // from winston-transport TransportStreamOptions
    format?: Format | undefined;
    level?: string | undefined;
    silent?: boolean | undefined;
    handleExceptions?: boolean | undefined;

    log?(info: any, next: () => void): any;
    logv?(info: any, next: () => void): any;
    close?(): void;
}

export class Slack {
    constructor(options?: SlackTransportOptions);
    format?: Format | undefined;
    level?: string | undefined;
    silent?: boolean | undefined;
    handleExceptions?: boolean | undefined;

    log?(info: any, next: () => void): any;
    logv?(info: any, next: () => void): any;
    close?(): void;
}

export class Format {
    constructor(opts?: object);

    options?: object | undefined;
    transform: (info: TransformableInfo, opts?: any) => TransformableInfo | boolean;
}

export interface TransformableInfo {
    level: string;
    message: string;
    [key: string]: any;
}

````

### Additional Details
 * Last updated: Fri, 06 Sep 2024 20:35:54 GMT
 * Dependencies: none

# Credits
These definitions were written by .

---
_Source: https://npm.io/package/@types/slack-winston · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
