mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 11:02:11 +08:00
d3 - Adds function type to d3.layout.partition<T> (#9668)
interface Partition<T> was missing it's function type.
This commit is contained in:
committed by
Masahiro Wakame
parent
279acdc785
commit
00e58d84f3
2
d3/d3.d.ts
vendored
2
d3/d3.d.ts
vendored
@@ -3064,6 +3064,8 @@ declare namespace d3 {
|
||||
}
|
||||
|
||||
export interface Partition<T extends partition.Node> {
|
||||
(root: T): T[];
|
||||
|
||||
nodes(root: T): T[];
|
||||
|
||||
links(nodes: T[]): partition.Link<T>[];
|
||||
|
||||
Reference in New Issue
Block a user