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

@types/d3-transition

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-transition - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

74

d3-transition/index.d.ts

@@ -12,3 +12,3 @@ // Type definitions for D3JS d3-transition module 3.0

import { ArrayLike, BaseType, Selection, ValueFn } from 'd3-selection';
import { ArrayLike, BaseType, Selection, ValueFn } from "d3-selection";

@@ -18,3 +18,3 @@ /**

*/
declare module 'd3-selection' {
declare module "d3-selection" {
/**

@@ -77,4 +77,7 @@ * A D3 Selection of elements.

*/
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
export function active<GElement extends BaseType, Datum, PElement extends BaseType, PDatum>(node: GElement, name?: string): Transition<GElement, Datum, PElement, PDatum> | null;
export function active<GElement extends BaseType, Datum, PElement extends BaseType, PDatum>(
node: GElement,
name?: string,
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
): Transition<GElement, Datum, PElement, PDatum> | null;

@@ -125,3 +128,5 @@ /**

*/
select<DescElement extends BaseType>(selector: ValueFn<GElement, Datum, DescElement>): Transition<DescElement, Datum, PElement, PDatum>;
select<DescElement extends BaseType>(
selector: ValueFn<GElement, Datum, DescElement>,
): Transition<DescElement, Datum, PElement, PDatum>;

@@ -138,4 +143,6 @@ /**

*/
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
selectAll<DescElement extends BaseType, OldDatum>(selector: string): Transition<DescElement, OldDatum, GElement, Datum>;
selectAll<DescElement extends BaseType, OldDatum>(
selector: string,
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
): Transition<DescElement, OldDatum, GElement, Datum>;
/**

@@ -153,4 +160,6 @@ * For each selected element, select all descendant elements returned by the selector function, if any,

*/
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
selectAll<DescElement extends BaseType, OldDatum>(selector: ValueFn<GElement, Datum, DescElement[] | ArrayLike<DescElement>>): Transition<DescElement, OldDatum, GElement, Datum>;
selectAll<DescElement extends BaseType, OldDatum>(
selector: ValueFn<GElement, Datum, DescElement[] | ArrayLike<DescElement>>,
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
): Transition<DescElement, OldDatum, GElement, Datum>;

@@ -167,4 +176,6 @@ /**

*/
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
selectChild<DescElement extends BaseType, OldDatum>(selector?: string | ValueFn<GElement, Datum, DescElement>): Transition<DescElement, OldDatum, GElement, Datum>;
selectChild<DescElement extends BaseType, OldDatum>(
selector?: string | ValueFn<GElement, Datum, DescElement>,
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
): Transition<DescElement, OldDatum, GElement, Datum>;

@@ -181,4 +192,6 @@ /**

*/
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
selectChildren<DescElement extends BaseType, OldDatum>(selector?: string | ValueFn<GElement, Datum, DescElement>): Transition<DescElement, OldDatum, GElement, Datum>;
selectChildren<DescElement extends BaseType, OldDatum>(
selector?: string | ValueFn<GElement, Datum, DescElement>,
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
): Transition<DescElement, OldDatum, GElement, Datum>;

@@ -278,3 +291,3 @@ /**

*/
style(name: string, value: string | number | boolean, priority?: null | 'important'): this;
style(name: string, value: string | number | boolean, priority?: null | "important"): this;
/**

@@ -299,3 +312,7 @@ * For each selected element, assigns the style tween for the style with the specified name to the specified target value with the

*/
style(name: string, value: ValueFn<GElement, Datum, string | number | boolean | null>, priority?: null | 'important'): this;
style(
name: string,
value: ValueFn<GElement, Datum, string | number | boolean | null>,
priority?: null | "important",
): this;

@@ -328,3 +345,7 @@ /**

*/
styleTween(name: string, factory: ValueFn<GElement, Datum, (this: GElement, t: number) => string>, priority?: null | 'important'): this;
styleTween(
name: string,
factory: ValueFn<GElement, Datum, (this: GElement, t: number) => string>,
priority?: null | "important",
): this;

@@ -465,4 +486,6 @@ /**

*/
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
filter<FilteredElement extends BaseType>(filter: ValueFn<GElement, Datum, boolean>): Transition<FilteredElement, Datum, PElement, PDatum>;
filter<FilteredElement extends BaseType>(
filter: ValueFn<GElement, Datum, boolean>,
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
): Transition<FilteredElement, Datum, PElement, PDatum>;

@@ -532,3 +555,6 @@ // Event Handling -------------------

*/
call(func: (transition: Transition<GElement, Datum, PElement, PDatum>, ...args: any[]) => any, ...args: any[]): this;
call(
func: (transition: Transition<GElement, Datum, PElement, PDatum>, ...args: any[]) => any,
...args: any[]
): this;

@@ -633,3 +659,5 @@ /**

*/
export type SelectionOrTransition<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> = Selection<GElement, Datum, PElement, PDatum> | Transition<GElement, Datum, PElement, PDatum>;
export type SelectionOrTransition<GElement extends BaseType, Datum, PElement extends BaseType, PDatum> =
| Selection<GElement, Datum, PElement, PDatum>
| Transition<GElement, Datum, PElement, PDatum>;

@@ -656,3 +684,5 @@ /**

*/
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
export function transition<OldDatum>(transition: Transition<BaseType, any, BaseType, any>): Transition<BaseType, OldDatum, null, undefined>;
export function transition<OldDatum>(
transition: Transition<BaseType, any, BaseType, any>,
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
): Transition<BaseType, OldDatum, null, undefined>;
{
"name": "@types/d3-transition",
"version": "3.0.4",
"version": "3.0.5",
"description": "TypeScript definitions for D3JS d3-transition module",

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

},
"typesPublisherContentHash": "a69d4247bb7400806d53ab6b901d5a177c8757eb66c2a6c0e9a1a63a12d77a2e",
"typeScriptVersion": "4.3"
"typesPublisherContentHash": "7de992aec41a5b96f28ec24d9950c9f770b9df2fc16bf087041cc4b803e1031d",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Tue, 22 Aug 2023 18:04:19 GMT
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT
* Dependencies: [@types/d3-selection](https://npmjs.com/package/@types/d3-selection)

@@ -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