@types/depd
- Version 1.1.36
- Published
- 5.61 kB
- 1 dependency
- MIT license
Install
npm i @types/depd
yarn add @types/depd
pnpm add @types/depd
Overview
TypeScript definitions for depd
Index
Functions
Interfaces
Namespaces
Functions
function depd
depd: (namespace: string) => depd.Deprecate;
Interfaces
interface Deprecate
interface Deprecate {}
method function
function: <T extends Function>(fn: T, message?: string) => T;
method property
property: <T extends object>(obj: T, prop: keyof T, message: string) => void;
call signature
(message: string): void;
interface DeprecationError
interface DeprecationError extends Error {}
Namespaces
namespace global
namespace global {}
namespace global.NodeJS
namespace global.NodeJS {}
interface Process
interface Process {}
method addListener
addListener: ( event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void) => this;
method emit
emit: (event: 'deprecation', code: depd.DeprecationError) => boolean;
method listeners
listeners: (event: 'deprecation') => depd.DeprecationError[];
method on
on: ( event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void) => this;
method once
once: ( event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void) => this;
method prependListener
prependListener: ( event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void) => this;
method prependOnceListener
prependOnceListener: ( event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void) => this;
Package Files (1)
Dependencies (1)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@types/depd
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@types/depd)
- HTML<a href="https://www.jsdocs.io/package/@types/depd"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2852 ms. - Missing or incorrect documentation? Open an issue for this package.