Jinwoo Lee
fb93c75e47
Fix type of createPushResponse() in node http2. ( #20510 )
...
* Fix type of createPushResponse() in node http2.
From https://github.com/nodejs/node/blob/master/lib/internal/http2/compat.js#L628 :
`callback` is required to be a function. And its second argument is an `Http2ServerResponse`.
* `err` is nullable.
* delete redundant tests that have partial arguments
2017-10-17 08:35:55 -07:00
Alessandro Vergani
0905b3d2f9
Add copyFile to node file system ( #20185 )
2017-10-17 08:00:05 -07:00
Piotr Roszatycki
8ef0c39ccf
node: process.stdin is a stream.Readable and process.stdout is a stream.Writable ( #20493 )
...
* Readable.wrap returns this
* Add missing properties to interface ReadableStream and WritableStream; change interfaces in fs, dgram and net into classes
* Move all additional properties from ReadableStream interface to ReadStream interface (and Write...)
* hexo-fs should re-export classes from 'fs'
* process.stdin._destroy is a function
2017-10-17 07:44:21 -07:00
Jarrad Whitaker
d7f5d8fa90
@types/node: Asynchooks promiseResolve and AsyncResource ( #20540 )
...
* add promiseResolve hook
* add AsyncResource
* AsyncResource jsdoc fixes
* test remaining AsyncResource methods
2017-10-16 13:42:29 -07:00
Piotr Roszatycki
173d1d4e9e
node: dgram buffer size options and methods for Node 8.7.0 ( #20535 )
...
* dgram buffer size options and methods
* Verify type returned by dgram.*BufferSize methods
2017-10-16 13:40:56 -07:00
Jinwoo Lee
99064aa7c7
Add types for Writable#_writev() & Duplex#_writev(). ( #20529 )
...
* Add types for Writable#_writev() & Duplex#_writev().
As written in the doc:
https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_writable_writev_chunks_callback
* change `callback` from `Function` to `(err?: Error) => void`
* make _writev() optional.
Per the node document, it may or may not be implemented by implementations.
2017-10-16 13:39:23 -07:00
kazuyamamoto
ea8b7af8c6
[node] Add tls.getCiphers() and tls.DEFAULT_ECDH_CURVE ( #20482 )
...
https://nodejs.org/api/tls.html#tls_tls_getciphers
https://nodejs.org/api/tls.html#tls_tls_default_ecdh_curve
2017-10-16 13:16:08 -07:00
Robert K. Bell
547c7fd610
[types/node] Add final option to Stream WritableOptions ( #20477 )
...
* fix: add `final` option for WritableStreams
* fix: use more accurate type for `final()`
* typo: whitespace
* test: add `final` option
as documented here:
https://nodejs.org/docs/latest/api/stream.html#stream_constructor_new_stream_writable_options
* fix: cb is mandatory, error is optional
2017-10-16 13:15:22 -07:00
Flarna
2466ddbcff
[node] Add Buffer.poolSize() and correct Buffer.byteLength() ( #20419 )
...
* [node] Add Buffer.poolSize
* [node] Allow more types for Buffer.byteLength()
* fix lint issue
2017-10-16 11:18:42 -07:00
Alessandro Vergani
0e7cad3271
Add setMulticastInterface to node dgram ( #20186 )
2017-10-16 10:39:48 -07:00
Daniel Imms
f5dc2b6e33
Remove self from maintainers ( #20126 )
2017-10-16 10:15:45 -07:00
Sami Kukkonen
b0447ecb51
Add _destroy to for node Readable stream ( #20068 )
...
From the docs:
https://nodejs.org/api/stream.html#stream_readable_destroy_err_callback
As specified in
https://nodejs.org/api/stream.html#stream_readable_destroy_error
implementors are recommended to implement this method instead of
`destroy()` and the original method should be available for calling via
`super`.
This change matches the signatures of other Stream subclasses by
annotating `callback` as `Function` instead of `(err: Error) => void`.
2017-10-16 10:13:28 -07:00
Martijn Schrage
55a284355b
Add missing method readline.emitKeypressEvents to package node ( #19733 )
2017-10-16 08:47:24 -07:00
Rogier Schouten
ca3ec2cfe8
fix Node net.createConnection() and Socket#connect() signatures. ( #19456 )
...
* fix net.createConnection() and Socket#connect() signatures.
* fix lint errors.
* Fix review comments.
2017-10-16 08:26:29 -07:00
Roberto Desideri
932a34cd9b
Remove myself from the authors ( #19927 )
2017-10-10 07:29:54 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Alvis Tang
1aefe0126e
node: add the definition for util.callbackify ( #19114 )
...
* fix(node): add the definition for util.callbackify
* test(node): add an unit test for util.callbackify
2017-10-06 11:26:17 -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
Nathan Shively-Sanders
b8ea87c68e
Strict function variance fixes round 1
2017-10-02 15:50:34 -07:00
Flarna
616c84c0e7
[node] Allow augmentation of module ( #19612 )
...
* [node] Allow augmentation of module
- move class Module into NodeJS namespace
- add Module.Module
* update according to review findings
2017-09-28 13:36:21 -07:00
Guy Bedford
06866d14e7
Fix up URL iteration ( #19683 )
...
* fix up URL interfaces
* try removing Iterable implements
* es5 support fix
2017-09-25 14:11:48 -07:00
Benjamin Lichtman
bbb89a9dac
Merge pull request #19931 from Loghorn/execfile
...
Fixes issues with callback parameters and adds missing promisified
2017-09-22 10:41:24 -07:00
Alessandro Vergani
dde28abe03
Add execFile tests
2017-09-21 17:36:51 +02:00
John Papandriopoulos
60e2268280
Add missing tls.connect lookup option for node 8.x ( #19861 )
...
* Add missing tls.connect lookup option for node 8.x
* Following @Flarna's review: updated options type
2017-09-21 08:14:40 -07:00
Alessandro Vergani
b66ac3815a
Fixes issues with callback parameters and adds missing promisified
2017-09-21 12:30:58 +02:00
Andy
f344702d8e
node: Add ability to promisify setTimeout and setImmediate ( #19488 )
...
* node: Add ability to promisify setTimeout and setImmediate
* Support providing a value
2017-09-08 12:51:56 -07:00
Aleh Zasypkin
ceebd7b2ed
[node] rename defaultEncoding option property to encoding. Turn-off no-var dtslint rule. ( #19175 )
2017-09-08 08:06:14 -07:00
Kelvin Jin
7809b0138f
[node] Add inspector type definitions ( #19330 )
...
* Add inspector types
* Move inspector to separate file
* Add tests and various updates
* substitute object with empty object
* fix copy-paste lapse
* use protocol definition bundled with Node 8.4.0
* Add inspector type def generator script
* fix issues from rebase
* address comments
2017-09-06 14:40:47 -07:00
Andy
69bf6eb0ed
Add more tslint disables ( #19590 )
2017-09-06 09:44:12 -07:00
Yaroslav Admin
5636098e03
Added more types for Node ( #19465 )
2017-09-06 08:07:35 -07:00
Andy
cb2dbfbb50
Add ignores for new lint rules ( #19504 )
2017-09-01 07:47:52 -07:00
Andy
a828ea02ac
Normalize tsconfig.jsons ( #19447 )
2017-08-30 08:15:31 -07:00
Andy
9ab3cd2b02
node: Errors in callbacks may be null ( #19138 )
2017-08-29 11:53:34 -07:00
Andy
0124a24440
Node: fix pipe<T> errors in Stream inheritors ( #19395 )
2017-08-28 16:23:28 -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
Kelvin Jin
a56c93add1
[node] Add http2 type definitions ( #18952 )
...
* [node] Add http2 type definitions
* More restrictive headers type
* Split Headers into incoming and outgoing
* Small changes
* Add tests and make corrections that surfaced while writing them
* Use spread operator instead of Object.assign
* Address comments
2017-08-23 14:33:31 -07:00
Andy
516ed213ca
Fix all lint errors ( #19253 )
2017-08-22 14:27:36 -07:00
Andy
924fafffc0
Fix remaining lint errors ( #19166 )
2017-08-20 15:37:53 -07:00
Andy
5d6c651a1a
Apply stricter lint rules ( #19063 )
2017-08-17 14:53:41 -07:00
Daniel Rosenwasser
913d4de374
Merge pull request #18988 from mattiash/node-interface-scopeid
...
node: Add scopeid for IPv6 interfaces
2017-08-16 22:18:37 -07:00
Mattias Holmlund
00f65c197a
node: IPv4/IPv6 extend common base
2017-08-16 14:13:44 +02:00
Mattias Holmlund
58ad862cee
node: Add scopeid for IPv6 interfaces
...
The scopeid field only exists if the interface is of family IPv6
https://nodejs.org/dist/latest-v6.x/docs/api/os.html#os_os_networkinterfaces
2017-08-15 20:00:11 +02:00
Marc Ghorayeb
ad093c1036
[node] homogenize zlib input to Buffer or string and results to Buffer
2017-08-15 14:36:40 +02:00
Guy Bedford
da71d8ae2b
stdin, stdout-specific property support for node v7 & 8 ( #18895 )
2017-08-14 13:30:36 -07:00
Marc Ghorayeb
bc55e7a12a
[node@4] accept string in zlib input ( #18739 )
2017-08-14 13:14:26 -07:00
Dimitri Benin
e792d401de
[node] add *Ms properties to Stats interface ( #18917 )
...
* [node] add *Ms properties to Stats interface
* [node] fix failing tests
2017-08-14 11:18:27 -07: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
Kazuhiro Yamamoto
869eab040e
Make net.Socket.remoteFamily and remotePort optional.
...
When remoteAddress property is undefined, these properties are also undefined.
2017-08-08 19:04:44 +09:00
Kazuhiro Yamamoto
a8a181bd1c
node: net.Socket.remoteAddress may be undefined
2017-08-06 11:13:56 +09:00