Skip to content

Instantly share code, notes, and snippets.

@MiguelSavignano
Created November 20, 2019 11:49
Show Gist options
  • Save MiguelSavignano/caab0c701f48955885538560b47df07a to your computer and use it in GitHub Desktop.
Save MiguelSavignano/caab0c701f48955885538560b47df07a to your computer and use it in GitHub Desktop.
Declaration types for react class
import React from 'react';
import './App.css';
import 'react-table/react-table.css';
import 'react-bootstrap-table/dist/react-bootstrap-table-all.min.css';
declare class App extends React.Component<{}, {
data: any;
loading: boolean;
}> {
constructor(props: any);
componentDidMount(): void;
onAfterSaveCell: (row: any, cellName: any, cellValue: any) => void;
onDeleteRow: (rowsIds: any) => void;
onAddRow: (row: any) => void;
render(): JSX.Element;
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment