Socket
Socket
Sign inDemoInstall

@types/d3-dispatch

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-dispatch - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

27

d3-dispatch/index.d.ts

@@ -45,24 +45,14 @@ // Type definitions for D3JS d3-dispatch module 3.0

* If multiple typenames are specified, the first matching callback is returned.
*
* @param types An event typename.
* @param callback A callback.
*/
on(typenames: string): ((this: T, ...args: any[]) => void) | undefined;
/**
* Removes the callback for the specified typenames.
* To remove all callbacks for a given name `foo`, say `dispatch.on(".foo", null).`
*
* @param types An event typename.
* Adds or removes the callback for the specified typenames.
* If a callback function is specified, it is registered for the specified (fully-qualified) typenames.
* If a callback was already registered for the given typenames, the existing callback is removed before the new callback is added.
* The specified typenames is a string, such as start or end.foo.
* The type may be optionally followed by a period (.) and a name; the optional name allows multiple callbacks to be registered to receive events of the same type, such as start.foo and start.bar.
* To specify multiple typenames, separate typenames with spaces, such as start end or start.foo start.bar.
* To remove all callbacks for a given name foo, say dispatch.on(".foo", null).
*/
on(typenames: string, callback: null): this;
/**
* Adds the callback for the specified typenames.
* The callback is registered for the specified (fully-qualified) typenames.
* If a callback was already registered for the given typenames,
* the existing callback is removed before the new callback is added.
*
* @param types An event typename.
* @param callback A callback.
*/
on(typenames: string, callback: (this: T, ...args: any[]) => void): this;
on(typenames: string, callback: null | ((this: T, ...args: any[]) => void)): this;
}

@@ -76,2 +66,3 @@

*/
// tslint:disable-next-line:no-unnecessary-generics
export function dispatch<T extends object>(...types: string[]): Dispatch<T>;
{
"name": "@types/d3-dispatch",
"version": "3.0.0",
"version": "3.0.1",
"description": "TypeScript definitions for D3JS d3-dispatch module",

@@ -43,4 +43,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-dispatch",

"dependencies": {},
"typesPublisherContentHash": "460d66a3a04ac4fbdc0e1e9dd963c3871d9d44c236ddf54146588eee5f7cae59",
"typesPublisherContentHash": "8156a257ca7133a5105258ab2f486efe1969a1a2f0ddd84f2e197f0025c3b166",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 23 Jun 2021 16:01:24 GMT
* Last updated: Thu, 01 Jul 2021 16:01:26 GMT
* Dependencies: none

@@ -14,0 +14,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