Nathan Shively-Sanders
5cfe858c2f
Merge pull request #17277 from mdebruijne/ServerResponse
...
[node] add missing methods to http.ServerResponse class
2017-06-20 14:55:06 -07:00
Andy Hanson
96545154cc
bittorrent-protocol: Use same default event handler as stream.Readable
2017-06-20 10:26:49 -07:00
Nathan Shively-Sanders
76ebf7a5f8
Merge pull request #17305 from DefinitelyTyped/scarabedore-master
...
Followup to #17154 -- fix node-static-tests
2017-06-20 08:37:30 -07:00
Michiel de Bruijne
a5d51727a3
[node] add type for http.ServerResponse headers
2017-06-20 12:28:40 +02:00
Michiel de Bruijne
79a26194f7
[node] add missing methods to http.ServerResponse class
2017-06-20 05:30:38 +02:00
Flarna
f743880056
Merge remote-tracking branch 'upstream/master' into node_process_signals
2017-06-20 01:10:26 +02:00
Flarna
74fd1f601d
- Added dedicated types for listeners to avoid unneeded copy/paste.
...
- Added overloads for listen() to cover issue discussed in latest comments of #16705
2017-06-20 01:01:48 +02:00
Nathan Shively-Sanders
3fe753b21c
Merge branch 'master' of https://github.com/scarabedore/DefinitelyTyped into scarabedore-master
2017-06-19 14:12:03 -07:00
Mine Starks
4accb34c83
Merge pull request #17139 from mdebruijne/node_http_server_listen
...
[node] port is optional in server.listen
2017-06-16 17:33:13 -07:00
Mine Starks
793b3090da
Merge pull request #17027 from ikokostya/node-8
...
[node] Add definition for Node.js v8
2017-06-16 16:46:53 -07:00
Madhukar Kedlaya
edbb4de95d
Creating a separate interface for IncomingMessageHeaders in node/index.d.ts ( #17157 )
...
* Creating a separate interface for IncomingMessageHeaders
This allows for IncomingMessage.headers types to be extensible per project. Suppose a node service expects a fixed set of headers of certain type (say string), that service can specify custom IncomingMessageHeaders with more concrete types defined.
For example
```
interface IncomingMessageHeaders {
"host": string;
"set-cookie": string[]
}
```
* Changing IncomingMessageHeaders defn
This definition adds undefined in addition to string and string[].
2017-06-16 10:21:58 -07:00
Nathan Shively-Sanders
4874667de9
Fix primitive weak type errors
...
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00
Flarna
c6eb2e6f07
split events newListener/removeListener for Process
2017-06-14 09:14:02 +02:00
Flarna
5686653759
* remove catch-all variants for on/once/... in Process
...
* add "newListener" | "removeListener" variants
* correct emit() functions for "cluster"
* add some tests
2017-06-13 22:08:10 +02:00
Sebastien PUECH
76260f6cf3
Fix "connect" method for node typings.
2017-06-13 16:24:43 +02:00
Flarna
15e315003c
* Add missing OS signals
...
* add missing process APIs
2017-06-13 13:05:18 +02:00
Michiel de Bruijne
97d232d5f7
[node] port is optional in server.listen
2017-06-13 04:23:33 +02:00
Nathan Shively-Sanders
cd62ed775d
Add 'message' to process.on ( #17137 )
...
It was omitted by mistake in #16705
2017-06-12 16:36:37 -07:00
Michiel de Bruijne
c9e01b3e76
[node] improve type definitions in cluster, http, https, process modules ( #16705 )
...
* [node] fix headers and trailers in interface IncomingMessage
* [node] set correct type to requestListener in https.createServer
* [node] export required interfaces in https
* [node] add process events
* [node] make worker and workers optional in cluster module
cluster.worker is not available in the master process
cluster.workers is not available in the worker process
* [node] add string[] to headers type to account for the set-cookie exception
* [node] set TypeScript version to 2.2 to enable Promise support
2017-06-12 06:56:21 -07:00
Konstantin Ikonnikov
552da47d0c
[node] Add definition for Node.js v8
2017-06-07 15:53:17 +03:00
Yui
15e9249275
Merge pull request #16946 from cjhowe7/patch-1
...
[types/node] Add promisify to util [wip]
2017-06-06 22:26:45 -07:00
Wilco Bakker
1c93aa3906
@types/node: Added emitWarning method to process. ( #16718 )
...
* Added emitWarning method to process.
* Added emitWarning to @types/node/index.d.ts as well.
2017-06-06 06:31:33 -07:00
hinell
aba45c2c7f
[Node] console.dir() options ( #16961 )
...
* [Node] console.dir() options
* [Node] v6 console.dir() options as InspectOptions
* [Node] v4 console.dir() options as InspectOptions
* [Node] v0 console.dir() options as InspectOptions
Adds Console interface and its absent variable declaration
2017-06-05 16:39:46 -07:00
Christian Howe
9db0ab843c
[types/node] Add promisify to util
...
A simple type definition that allows us to use the exciting util.promisify function.
2017-06-04 00:01:24 -04:00
Boris Cherny
4b35f5c6d1
Node: Update and add missing options for util#inspect ( #16804 )
...
* inspect depth should be nullable
* add showProxy, maxArrayLength, and breakLength options for util#inspect
2017-06-02 09:25:49 -07:00
Matt Bierner
1d18924b49
Use string literal type for dgram.createServer ( #16713 )
...
Fixes #16712
2017-06-02 07:58:56 -07:00
Josh Glazebrook
991b4dfb62
Added missing base64 character encoding to BufferEncoding global. ( #16658 )
2017-06-02 07:22:33 -07:00
Nathan Shively-Sanders
9a74c296e7
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped
2017-06-01 14:31:47 -07:00
Nathan Shively-Sanders
62dd9fbe3f
Use {} not Object for unknown options type
2017-06-01 14:30:48 -07:00
Nathan Shively-Sanders
b89cbeeb5b
Merge branch 'master' of https://github.com/RobDesideri/DefinitelyTyped into RobDesideri-master
2017-06-01 14:27:57 -07:00
Nathan Shively-Sanders
da5f9c2cb9
Merge pull request #16499 from rictic/stream-pause-this
...
[node] pause() and resume() return `this`
2017-06-01 14:21:03 -07:00
Nathan Shively-Sanders
026c6e9f60
Merge pull request #16497 from tellnes/node-tls-cert
...
node - update tls `getPeerCertificate` return value definition
2017-06-01 14:18:13 -07:00
Leonard Thieu
3f95ea32d7
[node] Narrow down type that can be passed to url.format(). ( #16850 )
...
* Narrow down type that can be passed to url.format().
* Add format(URL).
* [node] Fix build error.
universal-analytics package has invalid tslint.json.
* [node] Fix build error.
universal-analytics package has invalid version number.
2017-06-01 12:05:57 -07:00
Matthias Lochbrunner
423676a9f8
Add openStdin() ( #16378 )
2017-06-01 08:31:05 -07:00
Matus Gura
2c2b9e42c8
[node] Added missing on net.Socket ( #16810 )
2017-05-31 22:59:11 -07:00
Christian Tellnes
dad073b3fd
node - update tls getPeerCertificate return value definition
2017-05-31 22:26:51 +02:00
Peter Burns
e85e05d0b2
Add tests of types.
2017-05-23 12:03:17 -07:00
Daniel Rosenwasser
f3c3db1f37
Merge pull request #16377 from trustedtomato/patch-1
...
node - process.exit() should never return
2017-05-22 13:14:24 -07:00
Arthur Ozga
f4aad91a85
Merge pull request #16419 from Flarna/node_crypto_randomfill
...
[node] Add crypto.randomFillSync() and crypto.randomFill()
2017-05-19 16:59:54 -07:00
Arthur Ozga
16bf5d1016
Merge pull request #16442 from Flarna/node_url
...
[node] Add more constructor options to url.URLSearchParams
2017-05-19 16:41:02 -07:00
Roberto Desideri
5ea24bf9e1
[node] Edit fs.readdir() and fs.readdirSync()
2017-05-14 08:10:21 +02:00
Peter Burns
0da3fd26fe
node: pause() and resume() return this
...
Readable streams and streamlike interfaces in node have pause() and resume() methods. They're defined to return `this` in the documentation: https://nodejs.org/api/stream.html#stream_readable_pause
This is relevant when someone extends a stream, as the pause and resume methods on a subtype should return the subtype, not the super type.
2017-05-12 13:30:38 -07:00
Endel Dreyer
2068ad8dd0
node: add 'stdio' to ForkOptions
...
Documentation: https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options
See `stdio` in `options` parameter.
2017-05-10 21:42:38 +02:00
Flarna
4abd596e3c
[node] Add more constructor options to url.URLSearchParams
2017-05-10 13:09:25 +02:00
Flarna
97ba49c9d1
Add crypto.randomFillSync() and crypto.randomFill()
2017-05-09 17:56:56 +02:00
Halasi Tamás
56f05fb35d
process.exit() should never return
...
process.exit() should never return, so never is the correct return type
2017-05-07 20:41:05 +02:00
ikokostya
24f2ff899f
@types/node: Port dns.resolve* changes #16320 to node.js 4, 6 ( #16350 )
...
* @types/node: Port dns.resolve* changes #16320 to node.js 4, 6
* review fixes
2017-05-05 16:20:41 -07:00
Parambir Singh
67b6964441
Add a few missing type definitions for node.js zlib module ( #16311 )
...
* Update index.d.ts
Add overloaded methods for zlib module that take a ZlibOptions parameter along with a callback.
* Add tests for new methods added to node’s zlib module definition.
2017-05-04 17:44:38 -07:00
ikokostya
65989c0d61
@types/node: update dns.resolve* declarations ( #16320 )
...
* @types/node: update dns.resolve* declarations
Fixes : #11151
* review fixes
2017-05-04 17:44:11 -07:00
ikokostya
90cd78deeb
@types/node: fix dns.lookup() definitions ( #15900 )
...
* @types/node: fix dns.lookup() definitions
* fix optional family argument
2017-05-03 12:09:15 -07:00