Skip to content

Commit d214d65

Browse files
committed
Expose typescript typings publicly
1 parent 8aefacc commit d214d65

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Changelog
22
=========
3+
## 3.0.2
4+
* Fixes typescript typings not being exposed publicly
5+
36
## 3.0.1
47
* Big refactor, the state is not derived from the props after every update.
58
* `disableCloseOnClickOutside` prop is now `closeOnClickOutside` (avoid double negations).

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,10 @@ return <Datetime />;
3636

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

39-
**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.**
39+
**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:
4040

41-
42-
43-
```sh
44-
import "react-datetime/css/react-datetime.css";
41+
```js
42+
import "react-datetime/css/react-datetime.css";
4543
```
4644

4745
## API

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"name": "react-datetime",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "A lightweight but complete datetime picker React.js component",
55
"homepage": "https://github.com/arqex/react-datetime",
66
"repository": {
77
"type": "git",
88
"url": "https://github.com/arqex/react-datetime"
99
},
1010
"main": "./dist/react-datetime.cjs.js",
11-
"typings": "./src/datetime/DateTime.d.ts",
11+
"typings": "./typings/DateTime.d.ts",
1212
"files": [
1313
"css",
14-
"dist"
14+
"dist",
15+
"typings"
1516
],
1617
"scripts": {
1718
"build": "webpack --config config/webpack.config.build.js",
File renamed without changes.

typings/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"files": [
15-
"../src/datetime/DateTime.d.ts",
15+
"./DateTime.d.ts",
1616
"react-datetime-tests.tsx"
1717
]
1818
}

0 commit comments

Comments
 (0)