Skip to content

Commit

Permalink
Merge pull request #907 from jbetancur/fix/906
Browse files Browse the repository at this point in the history
fixes missing type declarations
  • Loading branch information
jbetancur authored Sep 13, 2021
2 parents c2dcc2e + 6125b67 commit fa3e4e9
Show file tree
Hide file tree
Showing 3 changed files with 288 additions and 288 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "react-data-table-component",
"version": "7.0.1",
"version": "7.0.2",
"description": "A simple to use declarative react based data table",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"browser": "dist/index.cjs.js",
"types": "dist/index.d.ts",
"types": "dist/src/index.d.ts",
"files": [
"dist"
],
Expand Down Expand Up @@ -51,7 +51,7 @@
"@testing-library/react": "^12.1.0",
"@types/faker": "^5.5.8",
"@types/jest": "^27.0.1",
"@types/lodash-es": "^4.17.4",
"@types/lodash-es": "^4.17.5",
"@types/lodash.orderby": "^4.6.6",
"@types/node": "^16.9.1",
"@types/react": "^17.0.20",
Expand All @@ -73,7 +73,7 @@
"eslint-plugin-react-hooks": "^4.2.0",
"faker": "^5.5.3",
"gh-pages": "^3.2.3",
"jest": "^27.1.1",
"jest": "^27.2.0",
"jest-styled-components": "^7.0.5",
"jest-watch-typeahead": "^0.6.4",
"lodash-es": "^4.17.21",
Expand Down
4 changes: 2 additions & 2 deletions stories/typescript.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ First, we'll need to define our data type (or interface):
```ts
import DataTable, { TableColumn } from 'react-data-table-component';

type DataRow {
type DataRow = {
title: string;
director: string;
year: string;
Expand Down Expand Up @@ -70,7 +70,7 @@ Putting it all together:
```ts
import DataTable, { TableColumn } from 'react-data-table-component';

type DataRow {
type DataRow = {
title: string;
director: string;
year: string;
Expand Down
Loading

0 comments on commit fa3e4e9

Please sign in to comment.