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
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
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
Josh Glazebrook
991b4dfb62
Added missing base64 character encoding to BufferEncoding global. ( #16658 )
2017-06-02 07:22:33 -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
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
Matus Gura
2c2b9e42c8
[node] Added missing on net.Socket ( #16810 )
2017-05-31 22:59:11 -07:00
Peter Burns
e85e05d0b2
Add tests of types.
2017-05-23 12:03:17 -07: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
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
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
Guy Bedford
52140f1509
NodeJS: ensure process.stdout.columns support ( #16178 )
...
* ensure process.stdout.columns support
* make tty stream interfaces optional
2017-04-27 14:57:55 -07:00
Andy
fa2480ba61
Remove more namespaces from tests ( #16029 )
2017-04-20 09:06:00 -07:00
Andy
525be6811d
node: Fix typeof error ( #15987 )
2017-04-19 10:09:20 -07:00
Ryan Cavanaugh
0d84d8d58a
Merge pull request #15831 from blakeembrey/node-streams
...
[node] Update and correct node.js stream interfaces
2017-04-17 14:26:28 -07:00
Ryan Cavanaugh
741629c940
Merge pull request #15688 from Loghorn/node_fs_position
...
Node filesystem read/write position can be null
2017-04-17 11:07:59 -07:00
Andy
426452ea55
node: disable dt-header lint rule for now ( #15864 )
2017-04-14 09:51:41 -07:00
Andy
bbc61fbf93
Extend "dtslint/dt.json" directly instead of "../tslint.json". ( #15822 )
...
* Extend "dtslint/dt.json" directly instead of "../tslint.json".
* Convert more "../tslint.json" to "dtslint/dt.json"
* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
Blake Embrey
915a86f88b
Update and correct node.js stream interfaces
2017-04-13 11:44:34 -07:00
Andy
495f8c403d
Add starter tslint.json files for node ( #15834 )
2017-04-13 07:14:39 -07:00
Alessandro Vergani
fbc98c9d18
Allow null as position in read/write
2017-04-06 12:27:36 +02:00
kadler15
330ccde014
Reverse signals and errno in node os.constants
2017-03-25 11:10:13 -07:00
Andy
508b2e7869
node: Change "disconnet" to "disconnect" ( #15375 )
2017-03-24 16:43:33 -07:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00