* Add shim function to typings
Add shim function to typings for promise.prototype.finally so that it can be used in a TypeScript project.
* Added shim test
* Update code style.
* Change return type to original promise.
The finally block should return the type of the original promise, not whatever is passed in to the finally block.
This has almost no sense for typescript, but very useful for ide.
At least webstorm uses first constructor definition with `Generate constructor action`.
And, I think it is good to define more narrow method definition earlier that more general.
The correct method-name has always been `withCustom()` instead of `custom()`. Also, the method-signature is (sadly) inconsistent with the other `withX()`-methods, since it expects the `ValidateFn` directly instead of wrapped in a `Validatable` (but it does wraps it into a `Validatable` internally).
* Adding FineUploader typings
* noImplicitThis true
* adding tslint.json
* tslint.json -> tslint
* fixing some lintings
* fixing lintings
* removing version
* added typescript version
* defaults that are null/undefined now are | null/undefined respectively
* removed minor version from fineuploader definition, removed typescript 2 version
* [Fix]: Added interfaces and changed definitions for three classes of easing functions, which can be parameterized. Fixes#13767.
* [Enhancement]: Activated `strictNullChecks` after validation
* [Chore]: Added JSDoc comments
* [Chore]: Added linting config file.
* Add memoizee definitions
* Fix common issues, added doc
* Removed blank line
* fix test
* Fix test methods
* Fix check style
* Fix check style
* Fixing semver header
* Fixing semver header
* `memoizee`: Clean up types
* Types 2.0 - Fix JS-quantities (#12739)
* Enable strict null checking per readme FAQ.
* Add tslint.json.
* Improve test file with project spec.
* Fix js-quantities d.ts, with adjustment of test.
* Add trailing newline to tslint.
* Simplify functional interface per linter.
* js-quantities: add readme examples to tests
* js-quantities: fix & clean declaration
* d3-selection: Mark before param of insert() as optional (#13090)
Selection<etc>.insert functions perfectly well without a `before` selector -- it does so in many d3 official examples.
This corrects the type signature to mark it as optional.
* [react-intl] bugfix for #12716 (#12906)
* fix for issue introduced in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12716
* injectIntl is now usable as class decorator
* fixed test
* use inferface instead of type
* format document
* fix chai-json-schema styling (#13537)
* googlemaps: Allow Marker.setAnimation(null) and Marker.setMap(null) (#13240)
* googlemaps: Allow Marker.setAnimation(null)
* Also, turn on strictNullChecks
* Allow new google.maps.Map(null) since it's technically possible with Google's example code from the docs
Signed-off-by: Iqbal Yusuf <iyusuf@corelogic.com>
* googlemaps: Allow Marker.setMap(null)
* Also, add more test code from the Google Maps API documentation
Signed-off-by: Grant Hutchins <ghutchins@pivotal.io>
* Added the brand property to the StripeCardData and fix style issues, lint (#13084)
* Add the "brand" field to StipeCardData
Added the StipeCardDataBrand type.
Added the `brand` property to the `StripeCardData` declaration with the type
`'Visa' | 'American Express' | 'MasterCard' | 'Discover JCB' | 'Diners Club' | 'Unknown'`
Reference: https://stripe.com/docs/api#card_object
* Run linter, fix issues. set --strictNullChecks.
Unsure about ambient declaration:
Removed as it seemed to be in error:
1. case was not correct
2. the export was the type of the global which is unconditionally defined.
3. this module does not seem a suitable candidate for a UMD declaration.
* Use header version of 0.0; explain Stripe versioning in comments
* Restore global
* Added tests