mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
- Remove several references to `any` that were too permissive. - Add an explicit dependency on popper.js. - Simplify tests by removing extraneous wrapper component and just creating a component; add a few more fields (but definitely not exhaustive tests). - Add myself as a maintainer. - Sort lines, because they clearly used to be that way and had some things added to the end.
19 lines
351 B
TypeScript
19 lines
351 B
TypeScript
import * as React from 'react';
|
|
import * as moment from 'moment';
|
|
import DatePicker from 'react-datepicker';
|
|
|
|
<DatePicker
|
|
selected={moment()}
|
|
onChange={(date: moment.Moment | null) => {}}
|
|
onYearChange={(date: moment.Moment) => {}}
|
|
popperModifiers={{
|
|
flip: {
|
|
enabled: false
|
|
}
|
|
}}
|
|
includeTimes={[moment()]}
|
|
>
|
|
<div/>
|
|
<span/>
|
|
</DatePicker>;
|