DefinitelyTyped/types/react-d3-graph/index.d.ts
Harry Goode 66613d5aca
Feature/react d3 graph (#42240)
* 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

* Update contibutors
2020-02-18 10:56:50 -08:00

34 lines
826 B
TypeScript

// Type definitions for react-d3-graph 2.3
// Project: https://github.com/danielcaldas/react-d3-graph#readme
// Definitions by: Harry Goode <https://github.com/hrngoode>
// Adina Todoran <https://github.com/adina-todoran>
// 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;
}