mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-dependents): update to ts 2.8 * fix version mismatches * remove package.json * post merge updates * add package.json back again
24 lines
674 B
TypeScript
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;
|