Commit Graph

216 Commits

Author SHA1 Message Date
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
Stéphane Le Dorze
cbadcb1b11 Signer is writable stream in crypto 2015-08-27 22:43:14 +02:00
Stéphane Le Dorze
e63ff8f99a Verify in crypto extends WritableStream 2015-08-27 22:10:18 +02: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
0e10cf0d52 Added node.d.ts reference for CI test 2015-08-04 21:25:45 -04: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
itokentr
a44984a2d9 node: Add methods fs.access(), fs.accessSync and related constants. 2015-06-23 19:43:59 +09:00
itokentr
979de8c421 node: Add methods Buffer.compare(), NodeBuffer.equals() and NodeBuffer.compare(). 2015-06-23 19:42:58 +09:00
Masahiro Wakame
c6e59c3d79 Merge pull request #4612 from chbrown/NodeBuffer-additions
Add {read,write}{U,}Int{LE,BE} methods to NodeBuffer interface
2015-06-14 17:16:59 +09:00
Christopher Brown
b9804ec753 Add Sync versions for all convenience methods in Node.js's built-in 'zlib' module 2015-06-10 13:40:24 -05:00
Christopher Brown
76b5640ff7 Add {read,write}{U,}Int{LE,BE} methods to NodeBuffer interface 2015-06-10 13:33:24 -05:00
Steve Ognibene
260acf401c Reviewed Buffer and path. Got started on fs. 2015-06-08 20:03:15 -04:00
bls
0d8680a11b Add tls.createSecureContext to node.js typing. 2015-06-04 17:46:55 +10:00
Guilherme Bernal
9d44f705de node: Declare global.gc()
This function is available with the node flag --expose-gc
2015-05-08 15:07:22 -03:00