Commit Graph

162 Commits

Author SHA1 Message Date
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
Flarna
34d4afebc1 [node] Update async_hooks according to renaming done in 8.2.0 (#18530)
- currentId() => executionAsyncId()
- triggerId() => triggerAsyncId()

see https://github.com/nodejs/node/pull/13490
2017-08-01 10:49:41 -07:00
Deividas Bakanas
417f73ad32 [node] undefined type added to properties of dictionaries. Some TSLint TODOs resolved. (#18372)
* `undefined` type added to properties of dictionaries;
Formatting fixed;
TSLint TODOs resolved:
- adjacent-overload-signatures;
- align;
- array-type;
- callable-types;
- comment-format;
- dt-header;
- import-spacing;
- interface-over-type-literal;
- jsdoc-format;
- no-consecutive-blank-lines;
- no-padding;
- no-string-throw;
- object-literal-shorthand;
- one-line;
- only-arrow-functions;
- semicolon;
- whitespace.

* `NodeRequireFunction` `type` reverted to `interface`.
2017-07-31 13:57:11 -07:00
william chang(張仲威)
b269ac560f [node] http.server add property keepAliveTimeout (#18385) 2017-07-25 12:42:02 -07:00
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