Commit Graph

73 Commits

Author SHA1 Message Date
Arthur Ozga
b6b7d5308d
Merge pull request #22077 from Zarel/writable-end
[node] Support passing callback-only in writable.end()
2017-12-19 11:23:30 -08:00
Guangcong Luo
62f093e09c Support passing function only in Node writable.end() 2017-12-14 19:22:16 -06:00
Mine Starks
dc7448628c
Merge pull request #20725 from thewizarodofoz/master
fix Worker.id type
2017-12-13 14:46:37 -08:00
Mine Starks
736ebf768c
Merge pull request #22010 from GrabCAD/master
Add types for Error.prepareStackTrace()
2017-12-11 09:14:14 -08:00
Howard Mak
95b94efe8d Clean up comments for NodeJS.CallSite methods. Make "this" references clearer. 2017-12-07 13:46:40 -05:00
Howard Mak
4d1ff2f02e PR feedback: Tighten signatures for CallSite methods 2017-12-07 13:20:39 -05:00
Howard Mak
4950326dd4 PR feedback: Add test for tighter CallSite signatures 2017-12-07 12:56:37 -05:00
Howard Mak
a30bc16f3c Tighten signature for CallSite.getTypeName() 2017-12-05 14:54:29 -05:00
Howard Mak
75dabcb90f Fix some CallSite properties to be functions not boolean values 2017-12-05 14:43:26 -05:00
Howard Mak
658b8af522 Rename NodeJS.StackFrame -> CallSite to match documentation 2017-12-05 14:33:37 -05:00
Ari Aviran
2b4eb32abf
Reverting tslint changes 2017-12-05 08:40:44 +02:00
Howard Mak
e0ba98cf88 Add signature for Error.prepareStackTrace() as per https://github.com/v8/v8/wiki/Stack%20Trace%20API 2017-12-05 00:24:40 -05:00
Ari Aviran
dccfda5de4
[node] Add Buffer.alloc methods to node v4
Add `Buffer.alloc`, `Buffer.allocUnsafe` and `Buffer.allocUnsafeSlow`
class methods that were backported to node v4 (starting with v4.5).

In addition add tests to all node versions for these class methods and
fix tslint configuration to pass the tests
2017-12-04 12:02:43 +02:00
Sebastian Silbermann
df70a8d72c node: add documented highWaterMark option 2017-11-15 17:59:59 +01:00
Kevin Greene
d17893c89b Add specific properties to iIncomingHttpHeaders 2017-10-27 12:30:59 -07:00
Kevin Greene
293dc4c62a
Merge branch 'master' into node-client 2017-10-27 10:28:29 -07:00
Kevin Greene
d1fe542d52 Account for 'set-cookie' header in Node v8 types 2017-10-27 10:05:05 -07:00
Kevin Greene
df9c373de2 Make HttpHeader types more specific 2017-10-26 22:30:34 -07:00
Kevin Greene
06a8ff4a13 Add tests for RequestOptions and ClientRequestArgs 2017-10-24 11:14:44 -07:00
Kevin Greene
3a86a2b2c5 [node] Fix linting errors 2017-10-24 09:02:06 -07:00
Andy
165e2bf7b0 Fix no-redundant-jsdoc ignores -- include no-redundant-jsdoc-2 (#20954) 2017-10-24 08:53:43 -07:00
Kevin Greene
63e6236af8 Fix to just make ClientRequestArgs an alias of RequestOptions 2017-10-23 15:32:52 -07:00
Andy
a2c81182cf node: Fix lint (#20835) 2017-10-23 07:34:15 -07:00
Oz Weiss
66711b599c worker.id is number, not string 2017-10-19 21:31:34 +03:00
Kevin Greene
bf50c9a7a7 [node] Update older node types (7,6,4) for more consistency with 8
* Specifically add interfaces for reqeust headers
  * Make the naming of client request options consistent (ClientRequestArgs)
2017-10-18 12:49:44 -07:00
Jeff Kenney
43a2660602 Fix node url and http/https request types (#18766)
* [node] url.format can take a string

* [node] http.request / https.request can take a string

* [node] reorder Url properties to match ordering in docs

* [node] DRY out the Url and UrlObject types

* [node] backport split Url / UrlObject types to v0 and v4

* remove 'any' union for UrlObject.query type
2017-10-17 12:00:46 -07:00
Andy
947a8fb761 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
Thomas Bouldin
234e726219 Allow option to be a string in Node 6 request methods (#20272)
* Add string option to request methods.

Per [Node docs](https://nodejs.org/docs/latest-v6.x/api/http.html#http_http_request_options_callback) the `get` and `request` methods should allow the `options` param to be a string. This is true for both the 'https' and 'http' modules.

* Add self to "definitions by" per README recommendations
2017-10-06 07:21:37 -07:00
Andy
cb2dbfbb50 Add ignores for new lint rules (#19504) 2017-09-01 07:47:52 -07:00
Marc Ghorayeb
dbe12007d6 [node] fix missing zlib options parameter in v0, v4 and v6 (#19121)
* [node] fix missing zlib options parameter in v0, v4 and v6

* [next-redux-wrapper] fix end of file with new line
2017-08-24 08:26:57 -07:00
Melvin Groenhoff
25ba611105 node: add ChildProcess killed property, add Worker send callback argument and fix some error events. (#19299) 2017-08-24 07:03:09 -07:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Marc Ghorayeb
ad093c1036 [node] homogenize zlib input to Buffer or string and results to Buffer 2017-08-15 14:36:40 +02:00
Dimitri Benin
5a3249593e [node] improve util.deprecate() typings, fix tests in v4 & v6 for TS >=2.3 (#18903)
* [node] improve util.deprecate() typings, fix tests in v4 & v6 for TS >=2.3

* [react-measure, react-svg-pan-zoom] fix lint errors

* [node] change deprecate() typings in v7, too
2017-08-14 11:18:10 -07:00
Andy
af8b0d1294 FIx new lint errors (#18382) 2017-07-25 10:34:23 -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
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
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
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
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
Barth, Christopher
1b3d820038 Correctly allow emit for any type of event for node worker 2017-07-06 14:03:55 -04: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
kimu_shu
1205f064bd Add fs.writeFileSync overloads and tests 2017-06-28 11:58:50 +09: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