Commit Graph

201 Commits

Author SHA1 Message Date
Masahiro Wakame
5cb07b5371 Merge pull request #7078 from chrootsu/node-querystring
node: signatures of module "querystring" have been changed
2015-12-13 00:45:59 +09:00
Masahiro Wakame
dcecb9edd1 Merge pull request #7129 from csnover/patch-3
[node] export Stream as class, not interface
2015-12-10 23:43:20 +09:00
Ilya Mochalov
0eef583c76 node: signatures of module "querystring" have been changed 2015-12-10 18:37:36 +05:00
Colin Snover
0ef797c135 [node] export Stream as class, not interface
require('stream').Stream in Node.js is a constructor.
2015-12-09 20:35:57 -06:00
Ilya Mochalov
d2e216ec4f node: signatures of module "os" have been changed 2015-12-05 16:37:35 +05:00
Takeshi Kurosawa
4ad9bef6cc Add assert.deepStrictEqual and assert.notDeepStrictEqual to node.d.ts
[io.js 1.2.0][1] added [deepStrictEqual][2] and [notDeepStrictEqual][3] to assert.

   [1]: https://github.com/nodejs/node/blob/v1.2.0/CHANGELOG.md#notable-changes
   [2]: https://nodejs.org/api/assert.html#assert_assert_deepstrictequal_actual_expected_message
   [3]: https://nodejs.org/api/assert.html#assert_assert_notdeepstrictequal_actual_expected_message
2015-11-22 13:25:47 +09:00
Joe Herman
f140e0fc12 node: Split to 0.12.x and 4.x. Added http.RequestOptions. 2015-11-05 17:50:31 -05:00
Masahiro Wakame
8cf8164641 Merge pull request #6587 from hakatashi/patch-1
Node: Fix punycode.ucs2.decode return type
2015-11-05 21:21:56 +09:00
Koki Takahashi
2726aa2da4 Node: Fix punycode.ucs2.decode return type
API Reference: https://nodejs.org/api/punycode.html#punycode_punycode_ucs2_decode_string
2015-11-03 23:05:31 +09:00
Joe Herman
2336533f9a Updated net.connect, combined url.Url and url.UrlOptions. 2015-11-02 11:00:46 -05:00
Dekel Barzilay
e3f20e9a77 Added missing flag 'v8debug' to Global interface
'v8debug' is an optional flag that will be set in NodeJS globals upon using the 'debug-brk' command parameter.
We're using it to dynamically detect when app is running in debug-mode.

(When not on debug-mode, the 'v8debug' flag is undefined)
2015-10-25 16:32:26 +02:00
Masahiro Wakame
3395fd7096 Merge pull request #6245 from rschuchart/execfile-maxbuffer
fixed type of maxBuffer option to execFile
2015-10-13 02:32:33 +09:00
marvin
2708ec7029 fixed type of maxBuffer option to execFile 2015-10-11 12:16:55 +02:00
marvin
4ff80190f0 fixed execSync and execFileSync return type 2015-10-11 11:42:13 +02:00
Horiuchi_H
c452e48ca2 Merge pull request #6185 from frankebersoll/master
Node.js: Added child_process.spawnSync
2015-10-09 16:21:15 +09:00
John Vilk
7fc487562c Updating write* methods to return offsets, fill to return the Buffer, and making isBuffer a type guard. 2015-10-08 02:50:40 -04:00
Frank Ebersoll
49a92ea837 Node.js: Added child_process.spawnSync 2015-10-07 16:55:39 +02:00
Masahiro Wakame
b12863b7e4 Merge pull request #6078 from rschmukler/master
add objectMode to node stream.WritableOptions
2015-10-06 03:16:54 +09:00
Ryan Schmukler
811c2fe7d9 add objectMode to node stream.WritableOptions
references #5658, references #5774
2015-09-30 19:55:06 -04:00
Eric N. Vander Weele
58a2e195ef node: Update fs.create(Read|Write)Stream definition
This commit includes the following changes:
* Remove duplicate type definition for `fs.createReadStream`.
* Update `options` object typings for both functions to match the keys
  and types specified in the Node.js v0.12.x documentation.

Links to the aforementioned functions are provided below for reference:
* http://nodejs.org/docs/latest-v0.12.x/api/fs.html#fs_fs_createreadstream_path_options
* http://nodejs.org/docs/latest-v0.12.x/api/fs.html#fs_fs_createwritestream_path_options
2015-09-29 21:36:33 -07:00
Bobby Powers
b34953791c node: WritableStream.write() should use a union for Buffer|string
I'm converting a node program I originally wrote in JS to TS, and
without this, the following pattern causes tsc to error out (tested
under 1.6):

```
let buf = current.read(); // current is a ReadableStream
if (buf !== null)
    output.write(buf);
```

With:

```
src/bin/cat.ts(28,17): error TS2345: Argument of type 'string | Buffer' is not assignable to parameter of type 'string'.
```
2015-09-25 16:08:16 -04:00
hansrwindhoff
73d4a4660b Update node.d.ts 2015-09-22 22:02:13 -06:00
Masahiro Wakame
285e6b692a Merge pull request #5838 from psnider/node_Error
Added Error to support stack
2015-09-20 18:37:45 +09:00
Masahiro Wakame
e0a3e0aa15 Merge pull request #5767 from progre/patch-fs.Stats
[node.d.ts] Add birthtime to fs.Stats
2015-09-16 22:29:54 +09:00
Masahiro Wakame
66b05ddbd6 Merge pull request #5753 from panuhorsmalahti/node-fs-write
Add more fs.write interfaces.
2015-09-16 22:13:20 +09:00
Masahiro Wakame
9b3780147b Merge pull request #5658 from chbrown/node-stream-Transform-fix
Replace Stream#_transform()s with single method with chunk: any
2015-09-16 22:07:45 +09:00
psnider
2aace82653 Added Error to support stack 2015-09-16 00:42:38 +00:00
progre
bc07252981 Add birthtime to fs.Stats 2015-09-10 20:02:57 +09:00
Panu Horsmalahti
45355cd1a5 Add more fs.write interfaces. 2015-09-09 13:15:35 +03:00
Christopher Brown
cc25ee393e Replace module "stream" chunk: string or chunk: Buffer arguments with `chunk:
any`
2015-09-08 14:09:49 -05:00
Stéphane Le Dorze
16c494b986 Update node.d.ts
Verify and Signer are WritableStreams as per:

https://nodejs.org/docs/v0.10.0/api/crypto.html#crypto_class_verify
https://nodejs.org/docs/v0.10.0/api/crypto.html#crypto_class_sign
2015-09-02 23:20:51 +02:00
Christopher Brown
a132dbfacf Replace Stream#_transform()s with single method with chunk: any 2015-08-29 18:31:48 -05:00
Masahiro Wakame
27e02d6674 Merge pull request #5280 from yourpalal/master
Update node's ReadLine.setPrompt to match new API
2015-08-13 23:05:41 +09:00
Tag
32f4b07c46 Update(node.d.ts): add statusMessage property to interface ServerResponse. 2015-08-11 16:39:57 +08:00
Alex Wilson
17146c4455 Update node's ReadLine.setPrompt to match new API
Fixes #5224
2015-08-08 12:54:49 -06:00
Kyle Gretchev
52ef0043e7 Converted imports to ES6 module syntax 2015-08-04 20:47:16 -04:00
Masahiro Wakame
8d05955157 Merge pull request #5166 from joswhite/patch-1
Add change to reflect that "position" in fs.write is optional
2015-08-03 23:11:42 +09:00
joswhite
5be1244e79 Add change to reflect that "position" in fs.write is optional 2015-07-31 11:59:15 -06:00
rhysd
ded31eeaee Add unref() to child_process.ChildProcess
child_process.ChildProcess.unref() isn't described in document.
But it actually exist and is described in document for `options.detached`.

https://nodejs.org/api/child_process.html#child_process_options_detached
2015-07-29 15:11:53 +09:00
Steve Ognibene
178dee76b2 Merge pull request #4762 from Gitgiddy/4740
Extendable interfaces for require, module.require (retry)
2015-07-24 10:28:26 -04:00
vvakame
ae21c4da5a add polyfill interface to node/node.d.ts 2015-07-19 17:11:32 +09:00
Masahiro Wakame
2b781309d1 Merge pull request #4880 from wholroyd/master
Added optional parameters for the node crypto.pbkdf2* functions
2015-07-13 22:13:56 +09:00
Masahiro Wakame
0dfad09248 Merge pull request #4849 from smremde/master
added missing 'bytesWritten' field to fs.WriteStream
2015-07-13 08:01:18 +09:00
wholroyd
23fb1c3225 Fixing TypeScript optional parameter issue, all tests pass 2015-07-09 11:42:46 -04:00
wholroyd
9301bb3732 Added optional parameters for the crypto.pbkdf2* functions 2015-07-09 11:31:36 -04:00
Stephen Remde
e553601092 added missing 'bytesWritten' field to fs.WriteStream 2015-07-07 13:19:10 +01:00
RareGrass
fbb93b57aa Update node.d.ts
Add the http.METHODS string array
2015-07-06 10:57:07 +08:00
Joe Herman
e6967ede70 node: Added stack to NodeJS.ErrnoException 2015-07-01 16:10:11 -04:00
Gitgiddy
575d43c508 Extendable interfaces for require, module.require
Node's `require` should implement a new interface `NodeRequire` (rather than direct signature) for specialized extension by other libraries #4740
2015-06-26 09:24:50 -04:00
itokentr
324dfabbff node: Add module "constants". 2015-06-23 19:45:09 +09:00