# @types/warning

> TypeScript definitions for warning

Latest version **3.0.4** (published 2026-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/warning
pnpm add @types/warning
yarn add @types/warning
bun add @types/warning
```

## Health

**Score 65/100 (B)** — status: active.

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

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 3.0.4 |
| Published | 2026-03-16 |
| First published | 2016-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

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

## Recent versions

- 3.0.4 (latest) — 2026-03-16
- 3.0.3 (ts4.5) — 2023-11-07
- 3.0.0 (ts2.0) — 2016-12-01
- 3.0.2 — 2023-10-18
- 3.0.1 — 2023-09-25

## README

# Installation
> `npm install --save @types/warning`

# Summary
This package contains type definitions for warning (https://github.com/BerkeleyTrue/warning).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/warning.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/warning/index.d.ts)
````ts
declare const warning: (condition: any, format?: string, ...extra: any[]) => void;
export = warning;

````

### Additional Details
 * Last updated: Mon, 16 Mar 2026 23:07:30 GMT
 * Dependencies: none

# Credits
These definitions were written by .

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