Commit Graph
9 Commits
Author SHA1 Message Date
Eric Anderson 9b53298395 Support Pick<> on setState now that TS 2.1 is out (#13155)
* Support Partial<> on setState now that TS 2.1 is out

* Update readme to reflect setState being typed correctly

* Switch setState to Pick

* Restore cloneELement portion of readme

* Use Pick<> | S for setState due to cast issue

* state and props should be readonly

* Fix nit + document why we

* Add typescript compiler header

* Update to properly order headers

* Update readme to reflect 2.1.5 fixing stPick

* Update readme now that 2.1.5 is out

* All that depend on react now require 2.1

* Fix definition that fails due to readonly state
2017-01-23 12:36:53 -08:00
Andy ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Andy b29f39d324 Fix path mappings (#13902)
* An old version must have a path mapping to itself
* react-daterange-picker doesn't need a dependency on "moment", since that isn't used directly, only through "moment-range" (which does have the dependency).
2017-01-10 07:49:04 -08:00
Andy a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
Andy Hanson b469c76ea5 "types" in tsconfig should be empty. 2016-12-08 09:57:56 -08:00
Mohamed Hegazy dc86842627 Make moment dependency use open ranges (#11547)
* Make moment dependency use `>` instead of fixed version

* Remove unused file

* Use moment.MomentFormatSpecification

* Add dependency on moment
2016-10-06 09:43:47 -07:00
Craig Nishina 2a7b90340c fix(react-daterange-picker): fix travis failures
closes #11334
2016-09-19 21:51:30 -07:00
Andy Hanson 28ef3d201b Remove <reference path="../xxx/xxx.d.ts"> from definitions files and replace it with import * as Xxx from "xxx" or <reference types="xxx"/> 2016-09-16 08:59:57 -07:00
Shinya Ohyanagi 2364c306eb Add definitions for react-daterange-picker (#10983)
* Add react-daterange-picker

* Fix 2-space to 4-space and add semicolon

DefinitelyTyped contributing says 'use tabs or 4-space indentation'.

* Remove declare var

declare var did not effected to build and run application.

* Add comment

Use Literal Types after TypeScript 2.0 GA released.

* Fix file name

Change react-daterange-picker-test.tsx to react-daterange-picker-tests.tsx
2016-09-07 20:15:23 +09:00