mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
Make the 'name' arg optional in d3.transition() (#21039)
This commit is contained in:
committed by
Sheetal Nandi
parent
732ff64967
commit
d92b971c92
2
types/d3-transition/index.d.ts
vendored
2
types/d3-transition/index.d.ts
vendored
@@ -569,7 +569,7 @@ export interface Transition<GElement extends BaseType, Datum, PElement extends B
|
||||
*
|
||||
* @param name Name of the transition.
|
||||
*/
|
||||
export function transition<OldDatum>(name: string): Transition<HTMLElement, OldDatum, null, undefined>;
|
||||
export function transition<OldDatum>(name?: string): Transition<HTMLElement, OldDatum, null, undefined>;
|
||||
|
||||
/**
|
||||
* Returns a new transition from an existing transition.
|
||||
|
||||
Reference in New Issue
Block a user