Lukas Zech
125165e3c2
Add 'bytesRead' and 'path' to fs.ReadStream
2016-11-10 16:10:07 +01:00
John Vilk
a9a732cb4d
[Node] errno is a number, not a string. ( #11890 )
2016-11-02 23:33:27 +09:00
Leo Rudberg
769e789454
Fix ordering of Server.listen definitions ( #12399 )
...
The version of `Server.listen` that takes a `ListenOptions` as the first argument should come before the versions that take `any` as the first argument. For example, even if a `ListenOptions` object is given, VSCode will assume it is `any` in its helper text. I find that not as preferable for type-safety reasons ( avoid all `any`s ;) ).
2016-11-01 23:00:44 +09:00
Flarna
45c5bcd854
Add process.mainModule, improve NodeModule ( #12257 )
...
* Add process.mainModule, improve NodeModule
Add mainModule in process. See https://nodejs.org/dist/latest-v6.x/docs/api/process.html#process_process_mainmodule
improve require.main see https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_accessing_the_main_module
improve NodeModule see https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_children and https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_parent
* Correct require.main and NodeModule
2016-10-28 23:13:14 +09:00
TonyYang
896f939be7
[node] Update events for repl ( #12262 )
...
* Update events for repl
* Update related tests
* Fix argument
2016-10-28 22:55:20 +09:00
TonyYang
8791a14cc5
[node] Update events for readline ( #12261 )
...
* Update events for readline
* update related tests
2016-10-28 22:54:20 +09:00
TonyYang
38f3096f49
[node] Update events for child_process ( #12260 )
...
* Update events for child_process
* Add related tests
2016-10-28 22:54:00 +09:00
Tim Perry
988a48ab2c
Stop net.Server incorrectly extending net.Socket ( #12056 )
2016-10-19 21:53:45 +09:00
Linda_pp
3a61c9ee44
Add missing argv0 property to NodeJS.Process ( #12027 )
...
Document:
https://nodejs.org/api/process.html#process_process_argv0
This was added at v6.4.0.
2016-10-19 21:12:05 +09:00
nixar
35edbc5cd8
Put start/end jsdoc markers on their own line
2016-10-14 21:18:13 +02:00
nixar
08af4a37ba
Added documentation for tls.TLSSocket options
2016-10-14 17:06:12 +02:00
nixar
0935f94260
Add constructor signature for tls.TLSSocket
2016-10-14 16:33:44 +02:00
Arne Schubert
1a0f7cd07c
Make the "undersore methods" to protected ones in the definitions ( #11715 )
...
* Make the undersore methods to protected ones
* Remove non-public _read method from Result-Stream
2016-10-10 19:15:23 +09:00
Marvin Hagemeister
cc3ca26de4
Fix wrong stream TransformOptions interface. ( #11849 )
...
Transform streams are duplex streams and extend the latter's constructor options.
2016-10-08 10:54:59 -07:00
Alejandro Sánchez
38f26299ff
Added missing fs constants ( #11810 )
2016-10-06 16:01:16 -07:00
TonyYang
7be68adbdf
Correct fs.createWriteStream ( #11560 )
2016-09-28 23:34:18 +09:00
TonyYang
c48f9b3fd5
[node] Add events for tls.Server and tls.TLSSocket ( #11502 )
...
* Add events for tls.Server
* Add tests for tls.Server
* Add tests for TLSSocket
* Add events for TLSSocket
2016-09-28 21:46:43 +09:00
TonyYang
7315e9e81f
[node] Add events for dgram ( #11501 )
...
* Add events for dgram
* Add tests for dgram
* Correct dgram.RemoteInfo interface
* Correct emit
* Correct emit
2016-09-28 21:44:55 +09:00
TonyYang
cc8a366786
Add emit for cluster
2016-09-25 15:03:32 +08:00
Jonny Stoten
132ad0d959
Add timingSafeEqual typings ( #11426 )
2016-09-23 21:46:26 +09:00
Andy
66484e9f11
Merge pull request #11383 from Flarna/node_httpversions
...
Correct types of httpVersionMinor and httpVersionMinor
2016-09-21 12:21:28 -07:00
Gerhard Stöbich
0230e245a8
Correct types of http version
...
Correct type of httpVersionMajor and httpVersionMinor in IncomingMessage from string to number.
2016-09-21 20:42:32 +02:00
TonyYang
df76aa9c43
It should use boolean, not Boolean
2016-09-22 02:08:52 +08:00
TonyYang
f4bea67bce
Add return-type for emit
2016-09-22 01:51:58 +08:00
TonyYang
2502bbdc11
Correct type for net.Socket and net.Server events
2016-09-22 00:37:30 +08:00
TonyYang
47929560ea
Fix syntax
2016-09-21 17:20:12 +08:00
TonyYang
3dfb3e1353
Fix net events
2016-09-21 17:04:44 +08:00
Jay Anslow
ab8d917787
Node.JS EventEmitter accepts symbols as event names.
2016-09-20 10:30:02 +01:00
TonyYang
28d9437778
Add events for fs ( #11277 )
2016-09-19 15:30:32 +09:00
TonyYang
48649b8718
[node] Add events and exitedAfterDisconnect in cluster.work ( #11275 )
...
* Add events for cluster.worker
* Add exitedAfterDisconnect for cluster.Worker
2016-09-19 15:29:20 +09:00
TonyYang
4871fb2876
Add listening for http.Server ( #11246 )
2016-09-15 22:45:12 +09:00
TonyYang
9d66141d07
[node.d.ts] Update cluster definition ( #11235 )
...
* Update cluster
* Add ;
2016-09-15 22:41:55 +09:00
paulmorphy
1a97636e03
Added definition for the missing dns.setServers(servers) method ( #11183 )
...
* Added definition for the missing dns.setServers(servers) method
Method is documented here:
https://nodejs.org/docs/latest/api/dns.html#dns_dns_setservers_servers
* Updated definition for dns.resolveMx
The addresses argument passed to the callback function will contain an array of objects
containing both a priority and exchange property:
https://nodejs.org/docs/latest/api/dns.html#dns_dns_resolvemx_hostname_callback
2016-09-15 22:20:21 +09:00
TonyYang
3423aa94ff
connection are socket are same in IncomingMessage ( #11219 )
2016-09-14 22:17:36 +09:00
TonyYang
8193bc8f6e
[node.d.ts] Add definite events for Readable and Writable ( #11217 )
...
* Add definite events for Readable and Writable
* Delete comments in cluster
* Recovery cluster
* Remove interface extends events.EventEmitter
2016-09-14 22:13:43 +09:00
hriss95
5ee054ac95
[Node.d.ts]: Update definitions for module "crypto" ( #11186 )
2016-09-14 21:26:40 +09:00
TonyYang
684fa0d894
[node.d.ts] Correct NodeBuffer.toJSON type ( #11177 )
...
* Correct NodeBuffer.toJSON type
* Correct NodeBuffer.toJSON type in Node v4.x
2016-09-14 21:21:03 +09:00
TonyYang
f7b0b1c8a0
Correct assert.fail parameters ( #11176 )
2016-09-14 21:20:09 +09:00
TonyYang
d9ed548add
Delete deprecated functions ( #11173 )
2016-09-14 21:15:15 +09:00
Zhengbo Li
4008a51db4
Merge pull request #11084 from plantain-00/node-crypto-2
...
fix types of node crypto module
2016-09-09 10:40:46 -07:00
hriss95
ab57464fa2
Node.d.ts: Update definitions for module "stream" ( #11086 )
...
* Node.d.ts: Update definitions for module "stream"
* Node.d.ts: Fix an issue that caused tests to fail
2016-09-10 00:35:38 +09:00
TonyYang
aee853cc82
[node]Rearrange the order and add missing stuff for os ( #11146 )
...
* Rearrange the order and add missing something
* Correct type of constants
2016-09-10 00:35:23 +09:00
TonyYang
1d50912b2b
[node] Correct constants module for node v6 ( #11140 )
...
* Correct constants module
* Add tests for constants
* Typo namespace
* Recovery constants module and add two stuffs
2016-09-09 23:52:36 +09:00
hriss95
c49a53466c
Node.d.ts: Update definitions for module "dgram" ( #11143 )
2016-09-09 23:45:18 +09:00
hriss95
255697da9f
Node.d.ts: Update definitions for module "tls" ( #11025 )
...
* Node.d.ts: Update definitions for module "tls"
* Node.d.ts: Update definitions for module "tls"
* Node.d.ts: Revert function connect changes
* Node: Update definitions and tests for module "tls"
* Node: Fix a typo in definitions for module "tls"
2016-09-09 22:48:55 +09:00
hriss95
c5e23ee8da
Node.d.ts: Add module v8 ( #10932 )
...
* Node.d.ts: Add module v8
* Node.d.ts: Changes to module "v8"
2016-09-09 22:41:06 +09:00
york yao
2e57990342
fix type of verify in Verify and extract encode and format types
2016-09-08 07:38:50 +08:00
Zhengbo Li
8da7848758
Merge pull request #11066 from alejo90/move-fs-constants
...
Moved fs constants under constants as per documentation
2016-09-07 10:32:19 -07:00
Alejandro Sánchez
69089fffa5
Moved fs constants under constants as per documentation and added tests for access and accessSync
2016-09-07 08:24:16 -06:00
york yao
dd581d009e
merge the 2 ECDH interfaces and createECDH functions
2016-09-07 20:34:02 +08:00