mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
Add end method to d3 transition (#39355)
This commit is contained in:
committed by
Jesse Trinity
parent
b14675b1e6
commit
9da84cc5d7
@@ -421,6 +421,9 @@ if (listener) {
|
||||
// remove listener
|
||||
enterTransition = enterTransition.on('end', null); // check chaining return type by re-assigning
|
||||
|
||||
// check end method exists
|
||||
enterTransition.end();
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// Test Control Flow
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
Vendored
+5
@@ -456,6 +456,11 @@ export interface Transition<GElement extends BaseType, Datum, PElement extends B
|
||||
*/
|
||||
on(type: string, listener: ValueFn<GElement, Datum, void>): this;
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves when every selected element finishes transitioning. If any element’s transition is cancelled or interrupted, the promise rejects.
|
||||
*/
|
||||
end(): Promise<void>;
|
||||
|
||||
// Control Flow ----------------------
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user