Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/depd

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/depd - npm Package Compare versions

Comparing version 1.1.32 to 1.1.33

19

depd/index.d.ts

@@ -23,3 +23,3 @@ // Type definitions for depd 1.1

interface DeprecationError extends Error {
readonly name: 'DeprecationError';
readonly name: "DeprecationError";
namespace: string;

@@ -33,11 +33,14 @@ stack: string;

interface Process {
addListener(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this;
emit(event: 'deprecation', code: depd.DeprecationError): boolean;
on(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this;
once(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this;
prependListener(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this;
prependOnceListener(event: 'deprecation', listener: (deprecationError: depd.DeprecationError) => void): this;
listeners(event: 'deprecation'): depd.DeprecationError[];
addListener(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
emit(event: "deprecation", code: depd.DeprecationError): boolean;
on(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
once(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
prependListener(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
prependOnceListener(
event: "deprecation",
listener: (deprecationError: depd.DeprecationError) => void,
): this;
listeners(event: "deprecation"): depd.DeprecationError[];
}
}
}
{
"name": "@types/depd",
"version": "1.1.32",
"version": "1.1.33",
"description": "TypeScript definitions for depd",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/depd",
"license": "MIT",

@@ -19,5 +20,7 @@ "contributors": [

"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/depd"
},

@@ -28,4 +31,4 @@ "scripts": {},

},
"typesPublisherContentHash": "a60575e0e5d764343ccfedec8c962756a5b141a188ddddf021c525d24a156b34",
"typeScriptVersion": "2.2"
"typesPublisherContentHash": "7239468fc58b25e688e0de49aa22c07a5840a9dda8327c54032bc873d911309a",
"typeScriptVersion": "4.5"
}

@@ -8,10 +8,58 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/depd
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/depd.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/depd/index.d.ts)
````ts
// Type definitions for depd 1.1
// Project: https://github.com/dougwilson/nodejs-depd
// Definitions by: Zhiyuan Wang <https://github.com/danny8002>
// BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
Additional Details
* Last updated: Thu, 07 Sep 2017 22:03:13 GMT
* Dependencies: node
/// <reference types="node" />
export = depd;
declare function depd(namespace: string): depd.Deprecate;
declare namespace depd {
interface Deprecate {
(message: string): void;
// tslint:disable-next-line ban-types
function<T extends Function>(fn: T, message?: string): T;
property<T extends object>(obj: T, prop: keyof T, message: string): void;
}
interface DeprecationError extends Error {
readonly name: "DeprecationError";
namespace: string;
stack: string;
}
}
declare global {
namespace NodeJS {
interface Process {
addListener(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
emit(event: "deprecation", code: depd.DeprecationError): boolean;
on(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
once(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
prependListener(event: "deprecation", listener: (deprecationError: depd.DeprecationError) => void): this;
prependOnceListener(
event: "deprecation",
listener: (deprecationError: depd.DeprecationError) => void,
): this;
listeners(event: "deprecation"): depd.DeprecationError[];
}
}
}
````
### Additional Details
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
* Global values: none
# Credits
These definitions were written by Zhiyuan Wang <https://github.com/danny8002>, BendingBender <https://github.com/BendingBender>.
These definitions were written by [Zhiyuan Wang](https://github.com/danny8002), and [BendingBender](https://github.com/BendingBender).

Sorry, the diff of this file is not supported yet

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