Skip to content

Commit

Permalink
Expose typescript typings publicly
Browse files Browse the repository at this point in the history
  • Loading branch information
arqex committed Sep 20, 2020
1 parent 8aefacc commit d214d65
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,8 @@
Changelog
=========
## 3.0.2
* Fixes typescript typings not being exposed publicly

## 3.0.1
* Big refactor, the state is not derived from the props after every update.
* `disableCloseOnClickOutside` prop is now `closeOnClickOutside` (avoid double negations).
Expand Down
8 changes: 3 additions & 5 deletions README.md
Expand Up @@ -36,12 +36,10 @@ return <Datetime />;

Do you want more examples? [Have a look at our resources gallery](resources.md).

**Don't forget to add the [CSS stylesheet](https://github.com/arqex/react-datetime/blob/master/css/react-datetime.css) to make it work out of the box.**
**Don't forget to add the [CSS stylesheet](https://github.com/arqex/react-datetime/blob/master/css/react-datetime.css) to make it work out of the box.**. You only need to do this once in your app:



```sh
import "react-datetime/css/react-datetime.css";
```js
import "react-datetime/css/react-datetime.css";
```

## API
Expand Down
7 changes: 4 additions & 3 deletions package.json
@@ -1,17 +1,18 @@
{
"name": "react-datetime",
"version": "3.0.1",
"version": "3.0.2",
"description": "A lightweight but complete datetime picker React.js component",
"homepage": "https://github.com/arqex/react-datetime",
"repository": {
"type": "git",
"url": "https://github.com/arqex/react-datetime"
},
"main": "./dist/react-datetime.cjs.js",
"typings": "./src/datetime/DateTime.d.ts",
"typings": "./typings/DateTime.d.ts",
"files": [
"css",
"dist"
"dist",
"typings"
],
"scripts": {
"build": "webpack --config config/webpack.config.build.js",
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion typings/tsconfig.json
Expand Up @@ -12,7 +12,7 @@
}
},
"files": [
"../src/datetime/DateTime.d.ts",
"./DateTime.d.ts",
"react-datetime-tests.tsx"
]
}

0 comments on commit d214d65

Please sign in to comment.