Skip to content

Commit 4f5f1e0

Browse files
authored
Merge pull request #6 from uncountableinc/brendan/add-types-2
Add types
2 parents 4ba4281 + 8bf4657 commit 4f5f1e0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-datetime",
3-
"version": "3.1.0-unc-5",
3+
"version": "3.1.0-unc-6",
44
"description": "A lightweight but complete datetime picker React.js component",
55
"homepage": "https://github.com/arqex/react-datetime",
66
"repository": {

typings/DateTime.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,15 @@ declare namespace ReactDatetimeClass {
201201
When true the picker get closed when clicking outside of the calendar or the input box. When false, it stays open.
202202
*/
203203
closeOnClickOutside?: boolean;
204+
205+
/* Display time zone (determined by displayTimeZone prop) in the time picker, or the user's
206+
current time zone if not provided */
207+
showTimeZone?: boolean,
208+
209+
/* By default, time is displayed in input as <date> <time>. If this prop is true, then
210+
display as <time> <date>
211+
*/
212+
showTimeFirst?: boolean,
204213
}
205214

206215
export interface DatetimepickerState {

0 commit comments

Comments
 (0)