DefinitelyTyped/types/react-treeview/index.d.ts
Ferdy Budhidharma bc0c933415 feat(react-dependents): update to TS 2.8 (part 2 of 2) (#27744)
* feat(react-dependents): update to ts 2.8

* fix version mismatches

* remove package.json

* post merge updates

* add package.json back again
2018-08-06 06:28:42 +01: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.8
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;