Commit Graph

128 Commits

Author SHA1 Message Date
Andy
af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -07:00
william chang(張仲威)
dfda34b1c2 [node] net.Server, http.Server, http.ServerRequest, http.ServerResponse, http.ClientRequest, http.IncomingMessage, http.ClientResponse fix from interface to class and add constructors. (#18281)
* [node] net.Server, http.Server, http.ServerRequest, http.ServerResponse, http.ClientRequest, http.IncomingMessage, http.ClientResponse, http.Server fix from interface to class and add constructors.

* add http constructor tests

* fix lint

* add author

* fix: remove rejectUnauthorized,
createConnection callback make more detailed,
http.Server requestListener more detailed,
add export OutgoingMessage, ServerResponse and ClientRequest extends OutgoingMessage.
combine the constructors in ClientRequest

* add more http tests

* remove trailing space

* remove deprecated apis, private props not documented, seperate httpHeaders to incoming and outgoing, fix rejectUnauthorized prop misplaced, use () => void for callback

* typo

* settimeout return this
2017-07-24 10:37:46 -07:00
Daniel Imms
527914c2a3 node: Fix net.Socket definition (#18275)
v0.12.x: https://nodejs.org/docs/latest-v0.12.x/api/net.html#net_new_net_socket_options
v4: https://nodejs.org/dist/latest-v4.x/docs/api/net.html#net_new_net_socket_options
v6: https://nodejs.org/dist/latest-v6.x/docs/api/net.html#net_new_net_socket_options
v7: https://nodejs.org/dist/latest-v7.x/docs/api/net.html#net_new_net_socket_options
v8: https://nodejs.org/api/net.html#net_new_net_socket_options
2017-07-21 09:41:56 -07:00
Ron Buckton
d00f967ff8 Improve types for node 'fs' module (#18052) 2017-07-20 15:54:19 -07:00
Ryota Kameoka
da17482087 Fix type definition for REPL module of Node.js (#18021)
* Fix signature for repl.start() function

* Complete type definition for REPLServer.context property
2017-07-17 12:25:30 -07:00
Ryan Cavanaugh
000e7a1135 Merge pull request #17978 from cjbarth/node/read-file-sync
NODE: Correct signature for readFileSync
2017-07-13 19:03:26 -07:00
Ryan Cavanaugh
60a364df1d Merge pull request #17959 from achugaev93/master
node: Updated definitions and tests for ChildProcess#send method
2017-07-13 16:46:48 -07:00
Barth, Christopher
4b8d8cea4d Update tests 2017-07-13 10:38:41 -04:00
Barth, Christopher
e373c4db6c Add tests and include readFile changes 2017-07-13 09:07:38 -04:00
Ryan Cavanaugh
de2b96189f Merge pull request #17982 from cjbarth/node/event-emit
NODE: Correctly allow emit for any type of event for implementors or …
2017-07-12 14:30:08 -07:00
Ryan Cavanaugh
ab73c5c1a3 Merge pull request #17528 from mwiktorczyk/master
Node.js v8.0.0 Stream - types/node/index.d.ts
2017-07-12 14:10:27 -07:00
chugaev
9511a1a3df Merge remote-tracking branch 'origin/master' 2017-07-12 20:04:43 +03:00
chugaev
2306c80ff7 Optional option keepOpen of child_process#MessageOptions. 2017-07-12 20:02:51 +03:00
Barth, Christopher
124a0e72b2 Use unions to express all possible options 2017-07-12 11:53:08 -04:00
Barth, Christopher
f358dd164f NODE: Correctly allow emit for any type of event for implementors or extendors of EventEmitter 2017-07-12 11:28:18 -04:00
Barth, Christopher
0efb818c96 Correct signature for readFileSync 2017-07-12 10:33:31 -04:00
Alex Chugaev
b9897281e3 Merge branch 'master' into master 2017-07-12 02:20:13 +03:00
chugaev
a3fb24fb08 node: Updated definitions and tests for ChildProcess#send method 2017-07-12 02:11:00 +03:00
chugaev
dc3ec8e3c2 node: Updated definitions and tests for ChildProcess#send method 2017-07-12 02:06:50 +03:00
Jarrad Whitaker
c238232c3e change throws and doesNotThrow to use overload syntax 2017-07-11 18:47:05 +10:00
Jarrad Whitaker
d0c01b30a6 loosen assert.fail 2017-07-11 18:47:05 +10:00
Ron Buckton
4a5d968797 Merge pull request #17809 from McClellandLaboratories/patch-1
Adding missing readline createInterface options
2017-07-07 16:08:39 -07:00
Ron Buckton
7862c76a1b Merge pull request #17808 from cjbarth/node6/worker-emit
NODE: Correctly allow emit for any type of event for node worker
2017-07-07 16:07:59 -07:00
McClelland Laboratories
277f220679 Added requested change 2017-07-07 15:44:24 -07:00
Ron Buckton
66fe42e92c Merge pull request #17810 from achugaev93/patch-1
node: Updated signature of ChildProcess#send method
2017-07-07 03:02:02 -07:00
Alex Chugaev
65162c8223 Changed code formatting after tslint error. 2017-07-06 21:54:46 +03:00
McClelland Laboratories
3a40993a4d Updated createInterface Function
Added historySize?: number;,  prompt?: string;, crlfDelay?: number;, and removeHistoryDuplicates?: boolean; to createInterfaceFunction
2017-07-06 11:37:34 -07:00
McClelland Laboratories
af374b95e3 Removed trailing whitespaces
Removed trailing whitespaces
2017-07-06 11:34:39 -07:00
Alex Chugaev
f2ab19de45 Updated signature of ChildProcess#send method 2017-07-06 21:28:44 +03:00
McClelland Laboratories
3b2c21cf21 Adding missing readline createInterface options
prompt?: string;
crlfDelay?: number;
removeHistoryDuplicates?: boolean;
2017-07-06 11:14:34 -07:00
Barth, Christopher
1b3d820038 Correctly allow emit for any type of event for node worker 2017-07-06 14:03:55 -04:00
Mohsen Azimi
5f0cd2c285 Add cygwin to type of platforms in node 2017-07-05 19:26:00 -07:00
Mariusz Wiktorczyk
257300c98d Node.js v8.0.0 Stream 2017-07-04 15:44:47 +02:00
Augustin Peyrard
370d4fca00 fix: in node.readline cursorTo allows only x coordinate
Like this we are easily able to move in the current line with
absolute x-axis coordinate.
2017-07-01 19:15:50 -07:00
Paul van Brenk
9579267a28 Merge pull request #17564 from Flarna/node_async_hooks
[node] Add async_hooks module
2017-06-29 10:54:22 -07:00
Flarna
daa1227076 correct whitespace related lint error 2017-06-29 09:28:22 +02:00
Flarna
d872ea26ee object => Object to keep compat with TS <2.3 2017-06-28 22:21:57 +02:00
Paul van Brenk
4d12d79360 Merge pull request #17559 from brianjleeofcl/master
[node] Add missing properties in util.promisify and util.inspect
2017-06-28 11:42:05 -07:00
Flarna
743175f9f2 Merge remote-tracking branch 'upstream/master' into node_async_hooks 2017-06-28 20:39:44 +02:00
Paul van Brenk
fca29bc6e7 Merge pull request #17562 from kimushu/fix-writefilesync
Add fs.writeFile(Sync) / fs.appendFile(Sync) overloads and tests
2017-06-28 11:22:18 -07:00
Paul van Brenk
72198b3629 Merge pull request #17380 from scarabedore/master
Fixup for node types, fs.createWriteStream function.
2017-06-28 10:39:06 -07:00
Paul van Brenk
8edffc1e2e Merge pull request #17353 from octo-sniffle/node
[node] modified crypto.verfier.verify
2017-06-28 10:06:07 -07:00
kimu_shu
ff3da11908 Make callback parameter mandatory 2017-06-28 23:02:55 +09:00
kimu_shu
1b5e242876 Add overloads for writeFile, appendFile and appendFileSync 2017-06-28 21:55:08 +09:00
Flarna
0d8b5f7688 [node] Add async_hooks module
see https://nodejs.org/dist/latest-v8.x/docs/api/async_hooks.html
2017-06-28 10:30:47 +02:00
Brian Lee
f8156fb34a Add util.inspect.defaultOptions property 2017-06-28 00:48:12 -07:00
kimu_shu
1205f064bd Add fs.writeFileSync overloads and tests 2017-06-28 11:58:50 +09:00
Brian Lee
a8c85a0e3f Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped 2017-06-27 18:00:41 -07:00
Brian Lee
42af84cc3a Add properties for util.inspect and util.promisify 2017-06-27 17:24:31 -07:00
Brian Lee
a70a977fe4 Add additional tests 2017-06-27 17:22:48 -07:00