DefinitelyTyped/types/react-treeview/index.d.ts
Forbes Lindesay 8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00

24 lines
674 B
TypeScript

// Type definitions for react-treeview 0.4
// Project: https://github.com/chenglou/react-treeview
// Definitions by: Jay Anslow <https://github.com/janslow>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
import { Component, HTMLAttributes } from 'react';
declare namespace TreeView {
interface TreeProps extends HTMLAttributes<HTMLDivElement> {
collapsed?: boolean;
defaultCollapsed?: boolean;
nodeLabel: React.ReactNode;
itemClassName?: string;
treeViewClassName?: string;
childrenClassName?: string;
}
}
declare class TreeView extends Component<TreeView.TreeProps, any> {
}
export = TreeView;