Commit Graph

305 Commits

Author SHA1 Message Date
Mohamed Hegazy
6a78438776 Merge pull request #9241 from Engineer2B/patch-3
Update node.d.ts TLS (SSL); added TLSSocket definitions.
2016-06-21 16:13:20 -07:00
tarurar
1cc8217be0 Add files via upload
added destroy method to ReadStream interface
2016-06-19 10:46:43 +04:00
Michael Huynh
6abf99dda1 Add extra static members to the Node Error class (#9618)
Defines `stackTraceLimit` and `captureStackTrace` as static members for
the Error class in Node so their usage can be recognised.
2016-06-14 00:40:55 +09:00
vvakame
30e5a9f99a Merge branch 'node_prepend_listeners' of https://github.com/Flarna/DefinitelyTyped into Flarna-node_prepend_listeners 2016-06-08 20:06:40 +09:00
Gheorghe Anghelescu
74bfa26b4b change os.endianness() to string literal type (#9588) 2016-06-08 17:37:20 +09:00
Gerhard Stöbich
7ae2edb6d3 Add tests 2016-06-08 09:09:49 +02:00
Gerhard Stöbich
2fee4f256c Add EventEmitter APIs introduced in Node 6:
emitter.eventNames() ==> https://nodejs.org/dist/latest-v6.x/docs/api/events.html#events_emitter_eventnames
emitter.prependListener(eventName, listener) ==> https://nodejs.org/dist/latest-v6.x/docs/api/events.html#events_emitter_prependlistener_eventname_listener
emitter.prependOnceListener(eventName, listener) ==>  https://nodejs.org/dist/latest-v6.x/docs/api/events.html#events_emitter_prependoncelistener_eventname_listener
2016-06-08 08:47:44 +02:00
Flarna
7425c496f9 Add process.versions.modules to node 0.12, 4 and 6 (#9548) 2016-06-08 14:54:20 +09:00
Zen
300bba6fc8 update options of fs.createWriteStream (#9495) (#9544) 2016-06-08 14:38:26 +09:00
zenwarr
de02750377 Add node Buffer.alloc methods (#9529) 2016-06-03 00:52:35 +09:00
LongYinan
5b670ebf34 fix node fs.watch (#9446)
* fix node fs.watch

* add fs.watch test
2016-06-03 00:42:52 +09:00
Mohamed Hegazy
94b221dd73 Remove unreachable code 2016-05-23 17:27:55 -07:00
Mohamed Hegazy
9081e075b7 Fix extend erro for NodeBuffer
With change https://github.com/Microsoft/TypeScript/pull/8515, `Uint8Array.fill` method now returns `this`.
Fixing definition of `NodeBuffer` to maintain extends relationship with `Uint8Array`
2016-05-23 17:25:06 -07:00
hookclaw
d8b8632c61 Add property "connected" (#9391) 2016-05-23 12:57:54 +09:00
Sam Vervaeck
d55165c981 Allow paths to be buffers in fs of node v6.x (#9359)
* Allow buffers to be passed in fs for node v6.x

* Fix wrongly typed index in fs.realpath

Fixes the following errors:
- node.d.ts(1426,62): error TS1023: An index signature parameter type must be 'string' or 'number'.
- node.d.ts(1427,68): error TS1023: An index signature parameter type must be 'string' or 'number'.
2016-05-23 12:14:22 +09:00
Masahiro Wakame
eeede9d1ad split node-v4 definitions (#9341) 2016-05-15 01:59:20 +09:00
Boris Breuer
f65db9f99f Made TLSSocket authorizationError non-optional 2016-05-10 23:15:32 +02:00
Boris Breuer
b69044ebdc Reverted changes to formatting 2016-05-10 23:12:25 +02:00
Boris Breuer
0209fed7ff TLSSocket is actually a class
Thanks for point it out, @vvakame .
2016-05-10 22:59:58 +02:00
Masahiro Wakame
6d0e826824 update node.d.ts, remove typing notes (#9259) 2016-05-10 00:45:15 +09:00
jacky.chen
557f086186 Fixed the incorrect parameter type in the constructor of https.Agent (#9232) 2016-05-09 17:28:09 +09:00
Boris Breuer
316b3342a7 Added missing type information for options and err 2016-05-07 00:09:18 +02:00
Boris Breuer
4183b9b75f Update node.d.ts 2016-05-06 20:41:02 +02:00
Leon Yu
b8948c7009 fs.mkdtemp and fs.mkdtempSync (#9197) 2016-05-06 02:29:21 +09:00
Koki Takahashi
4f479b281c Node: Add Buffer.from() (#9125)
* Add tests about Buffer.from()

* Add definition about Buffer.from()
2016-05-01 22:50:06 +09:00
hellopao
1fa3e10e01 update cluster module for node.d.ts (#9074) 2016-04-23 23:39:14 +09:00
trevj
484e00f72f Node.js Buffer should be useable as a Uint8Array and is missing a constructor (#8919)
* make NodeBuffer extend Uint8Array

* add missing Buffer(ArrayBuffer) constructor

* add TODOs for missing Buffer methods
2016-04-12 23:20:33 +09:00
rhysd
292e56b5ac node.d.ts: Fix errors reported by 'tsc --target es6 --noImplicitAny' 2016-03-30 15:47:09 +09:00
rhysd
13bc8b8337 node.d.ts: Create tests for "vm" module 2016-03-30 14:58:30 +09:00
rhysd
984de2a7a7 node.d.ts: Update "vm" module (node 5.9.1)
https://nodejs.org/api/vm.html
2016-03-30 14:58:25 +09:00
Masahiro Wakame
315f5612ce Merge pull request #8576 from mrgleba/CipherStream
Cipher/decipher streams
2016-03-19 12:30:40 +09:00
Masahiro Wakame
b23bcd7ff4 Merge pull request #8575 from mrgleba/ClientRequest
node: ClientRequest headers
2016-03-19 12:23:03 +09:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
vvakame
39812a6b1c improve node.d.ts child_process definitions 2016-03-16 13:20:00 +09:00
vvakame
45ac539215 extract options interface in node.d.ts child_process 2016-03-16 11:06:26 +09:00
mrgleba
decc80ad2c Cipher/decipher streams 2016-03-15 19:51:30 +01:00
mrgleba
6767a205f4 ClientRequest headers 2016-03-15 19:44:23 +01:00
Masahiro Wakame
81506d0602 Merge pull request #8489 from cjbarth/node-cipher
Node cipher
2016-03-12 01:24:51 +09:00
Masahiro Wakame
be55527d45 Merge pull request #8450 from cjbarth/master
Add support for getConnections on http.Server
2016-03-12 01:23:39 +09:00
Barth, Chris
38d1672e5a Update node cipher definitions 2016-03-10 14:53:00 -05:00
Barth, Chris
c8c4d07df6 Better support for net.Server 2016-03-10 14:11:45 -05:00
Rafael Maiolla
1e1636769b Update node.d.ts
Add missing overload and set proper optional parameters
https://nodejs.org/dist/latest-v4.x/docs/api/fs.html#fs_fs_writesync_fd_buffer_offset_length_position
2016-03-09 23:15:17 -03:00
vvakame
48c1e3c1d6 fix node/node.d.ts fixes #8265 2016-02-26 22:23:28 +09:00
Masahiro Wakame
c2f07ae49c Merge pull request #8246 from chrootsu/node-emitter-this-typing
node: improved EventEmitter's definition with this-typing
2016-02-26 20:59:09 +09:00
Masahiro Wakame
6444d11fc1 Merge pull request #8223 from elisee/node-no-asset-typo
node: Fix typo in readUInt8 "noAssert" parameter name
2016-02-26 20:22:23 +09:00
Ilya Mochalov
abc2bcfb85 node: improved EventEmitter's definition with this-typing 2016-02-25 02:10:08 +05:00
Elisée Maurer
58aa81d0f9 node: Fix typo in readUInt8 "noAssert" parameter name 2016-02-23 14:04:56 +01:00
Barth, Chris
c5931169fc Add support for process.domain and some other process stuff #5703 2016-02-22 14:20:43 -05:00