DefinitelyTyped/types/react-d3-graph/index.d.ts
Harry Goode 7092c0f044
Feature/react d3 graph (#41953)
* react-d3-graph types

This is our first time submitting something to this git repo.
This is the type definition for the node module 'react-d3-graph'.

* Test added

* tests fixed

* Update package.json

* Update react-d3-graph-tests.tsx

* Update package.json

* Delete package.json

* Create tslint.json

* Update index.d.ts

* Update react-d3-graph-tests.tsx

* Update package.json
2020-01-30 13:20:21 -08:00

33 lines
749 B
TypeScript

// Type definitions for react-d3-graph 2.3
// Project: https://github.com/danielcaldas/react-d3-graph#readme
// Definitions by: hrngoode <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Component } from "react";
export class Graph extends Component<any, any> {
constructor(props: any, ...args: any[]);
UNSAFE_componentWillReceiveProps(nextProps: any): any;
componentDidMount(): void;
componentDidUpdate(): void;
componentWillUnmount(): void;
render(): any;
}
export class Link extends Component<any, any> {
constructor(...args: any[]);
render(): any;
}
export class Node extends Component<any, any> {
constructor(...args: any[]);
render(): any;
}