mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +00:00
* 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 |
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| tsconfig.json | ||
| twilio-tests.ts | ||