mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-23 14:39:58 +03:00
Update some types
This commit is contained in:
parent
69a7446998
commit
e54c7d969e
|
@ -85,8 +85,8 @@ export function tooltip<
|
||||||
) => '';
|
) => '';
|
||||||
let styles = {};
|
let styles = {};
|
||||||
|
|
||||||
let el: Selection<GElement, Datum, PElement, PDatum>;
|
let el: Selection<HTMLDivElement, Datum, BaseType, PDatum>;
|
||||||
const anchor: Selection<GElement, Datum, PElement, PDatum> =
|
const anchor: Selection<GElement, Datum, BaseType, PDatum> =
|
||||||
root || d3.select('body');
|
root || d3.select('body');
|
||||||
const rootNode = anchor.node()!;
|
const rootNode = anchor.node()!;
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ export function tooltip<
|
||||||
top: `${y}px`,
|
top: `${y}px`,
|
||||||
...styles,
|
...styles,
|
||||||
})
|
})
|
||||||
.html(() => text(node)) as Selection<GElement, Datum, PElement, PDatum>;
|
.html(() => text(node));
|
||||||
});
|
});
|
||||||
|
|
||||||
selection.on('mousemove.tip', (node) => {
|
selection.on('mousemove.tip', (node) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user