* Update Stripe library definitions to version 4.5.0.
And update to API version 2016-03-07.
Ideally more tests need to be added, but I've ran out of time to
implement all that is needed. The tests cover just enough for now,
although they are by no means thorough.
* Fix CI test errors
* Add correct header options
Add correct header options to method definitions.
As I understand it, all methods have the ability to have header options,
and they should always appear after any data options, see:
https://github.com/stripe/stripe-node/blob/master/lib/StripeMethod.js#L61https://stripe.com/docs/connect/authentication
Tests still need to be added.
* Rename account to accounts
And fix other small bugs:
- L4626: Fix duplicate arg name
- L4999: Add missing method definition
* Rename CustomerSubscription Methods
Rename some CustomerSubscription methods that were named incorrectly.
* Define chargeObj.refunds methods
Add ChargeRefunds methods to ICharge interface and add resource class.
https://github.com/stripe/stripe-node/blob/master/lib/resources/ChargeRefunds.js
* Add verifySource placeholder methods
Add verifySource placeholder method to the Customer resource class. This
needs to be properly implemented later.
Also update InvoiceLineItem.type property to be a string literal type.
* Test clean up
Clean up the tests and add a few missing tests. All current tests now
also test for Promise method returns.
Still a lot of missing tests, but it's better than before.
* Allow specifying `void` for component state type parameter.
Per comments on https://github.com/DefinitelyTyped/DefinitelyTyped/pull/8543,
the type parameter for component state was changed to `{}` from `any` for
increased type safety, but prevents specifying (non-functional) stateless
components without having empty state parameters, which seems messy. This
changes the type to `{} | void` to allow this while staying stricter than
`any`.
* Make react tests a bit more strict.
* Rename State -> ComponentState to make it a bit more explicit.
* Add type definitions for 'twitter-text' module
* Add tests for twitter-text.d.ts
* Add user defined type guard for entities to tests
* Add a missing file reference to test file
* Add ControllerService to angular-mocks
The definition in angular.d.ts changed that used to included this definition.
Needed because of 69d2fb9
* Added unit tests for controller service mock
* Created definitions for promise-pg
Dependencies:
* node
* Q
* pg
Tests script is cribbed from pg typings and modified for promise-pg.
'promise-pg'.Client does not inherit from 'pg'.Client because the
functions redefined to return promises completely replace the originals
from 'pg'.
* fix: QueryConfig.buffer is optional
It's only needed when doing a SELECT anyway, so mark it optional.
* Bring promise-pg tests in line with examples from promise-pg readme
* Add the promise-pg readme examples as tests