DefinitelyTyped/twilio
Ethan 8ef8a160c9 Twilio tweaks (#12109)
* Cleanup Imports

These should be uniform, and should all use the require() syntax, as
they’re referring to common js modules.

* Enable client.calls.list()

* Split up RestMethod signature

By splitting up the union into an overload, we get much more useful
autocomplete info.

* Remove BaseRequestCallback

BaseRequestCallback was only used in RestMethod, and it’s incorrect:
the user’s callback is always called with 3 arguments. I think this was
an attempt to say that the user’s callback doesn’t need to specify a
third argument, but a two-argument callback will already conform to
RequestCallback anyway.

As the updated tests show, this change gives us better type inference too.

* Use new Node HTTP Interface

This MiddlewareFunction type isn’t assignable to an express middleware
otherwise, as the latest express-static-core type declarations removes
Http.ServerRequest from the type definition of an express RequestHandler
2016-11-07 22:34:54 +09:00
..
index.d.ts Twilio tweaks (#12109) 2016-11-07 22:34:54 +09:00
tsconfig.json Merge branch 'master' into types-2.0 2016-09-14 18:44:24 -07:00
twilio-tests.ts Twilio tweaks (#12109) 2016-11-07 22:34:54 +09:00