Commit Graph

339 Commits

Author SHA1 Message Date
Paul van Brenk
e68bda7e67 Merge pull request #10713 from TonyPythoneer/node4-no-destroy
http.IncomingMessage no destroy
2016-08-19 14:26:24 -07:00
TonyYang
4c7ec69027 http.IncomingMessage no destroy
This is [Node v4.x document](https://nodejs.org/dist/latest-v4.x/docs/api/http.html#http_message_destroy_error), please refer this link.
2016-08-19 16:08:38 +08:00
Paul van Brenk
71862ebcd6 Merge pull request #10652 from aleung/node-dgram
node.d.ts : dgram : Allow optional parameters to be omitted.
2016-08-18 10:55:14 -07:00
Leo Liang
612e4169c6 Change overload function order to help with resolution. 2016-08-18 22:56:13 +08:00
Paul van Brenk
bde37dcdfb Merge pull request #10644 from lukas-zech-software/master
Add Buffer.swap16, Buffer.swap32 and Buffer.swap64 functions
2016-08-17 13:49:26 -07:00
Paul van Brenk
942c9fa697 Merge pull request #10648 from plantain-00/getCiphers-getCurves
add 3 missing methods in crypto module: getCiphers, getCurves and get…
2016-08-17 13:45:33 -07:00
TonyYang
75bfef43c6 destroy has a optional argument 2016-08-17 17:36:04 +08:00
TonyYang
5073eb65dc http.IncomingMessage: destroy not found
Please refer to https://nodejs.org/api/http.html#http_message_destroy_error
2016-08-17 17:07:40 +08:00
Leo Liang
b8e87fd530 node.d.ts : dgram : Allow option parameters to be omitted. 2016-08-17 01:35:43 +08:00
york yao
a28758054f add 3 missing methods in crypto module: getCiphers, getCurves and getHashes 2016-08-16 22:14:23 +08:00
Lukas Zech
9bb6206f47 Add Buffer.swap16, Buffer.swap32 and Buffer.swap64 functions 2016-08-16 14:29:17 +02:00
Paul van Brenk
b2a60d9e26 Merge pull request #10624 from erkie/master
Add path to fs.WriteStream
2016-08-15 15:24:44 -07:00
Erik Rothoff Andersson
9a2f1d6233 Path can be buffer 2016-08-15 22:24:58 +02:00
Erik Rothoff Andersson
e569feb83e Add path to fs.WriteStream 2016-08-15 16:24:03 +02:00
Dawson Reid
db7a37d18c
#10185 The Transform class now overrides pause and resume to return a Transform specifically. 2016-08-13 09:44:16 -03:00
Dawson Reid
23ceec1daf
#10185 The Socket class now overrides the Duplex stream's pause and resume to return a Socket specifically. 2016-08-13 09:42:29 -03:00
Dawson Reid
f8d5764dbd
#10185 Duplex now overrides Readable pause and resume to return a Duplex stream specifically. 2016-08-13 09:40:43 -03:00
Dawson Reid
aa7bb9d752
#10185 Readable class pause and resume now return a Readable. 2016-08-13 09:38:02 -03:00
Dawson Reid
108c7a9dd1
#10185 ReadableStream pause and resume now returns a ReadableStream. ReadWriteStream pause and resume now return a ReadWriteStream. 2016-08-13 09:36:37 -03:00
wallverb
f1fe214803 Add cb to SNICallback
NodeJS doc: SNICallback(servername, cb) <Function> A function that will be called if the client supports SNI TLS extension. Two arguments will be passed when called: servername and cb. SNICallback should invoke cb(null, ctx), where ctx is a SecureContext instance. (tls.createSecureContext(...) can be used to get a proper SecureContext.) If SNICallback wasn't provided the default callback with high-level API will be used (see below).
2016-08-07 10:53:50 -04:00
Ivo Stratev
34f194bdda forgot ; :D 2016-08-05 10:28:42 +03:00
Ivo Stratev
11d09cf341 Adding missing property exitCode from Process 2016-08-05 10:27:12 +03:00
TonyYang
fa5f6bf0cd Update node.d.ts (#10418)
It misses "finished" property, please refer official site: https://nodejs.org/api/http.html#http_response_finished
2016-08-03 00:50:38 +09:00
Luke Venn
538d534a4f Added missing https AgentOptions to node 4 and 6 definitions 2016-08-01 17:12:48 +01:00
Milan Burda
bf140ce89a Add Electron specific versions to process.versions (#10320) 2016-07-29 00:24:22 +09:00
Zach Bjornson
91d45c49a3 Add simplified constructor syntax for node streams (#10105)
See https://nodejs.org/api/stream.html#stream_simplified_construction for API reference.
2016-07-20 00:07:58 -07:00
Wesley Wigham
005ea0faff Add ref to ChildProcess (#10189)
It is the opposite of `unref` - it allows you to regain the reference that `unref` releases.
2016-07-19 23:57:09 -07:00
Nahuel Greco
38b09ae303 node.d.ts: added http.ServerResponse.setTimeout signature (#10135)
Added missing `http.ServerResponse.setTimeout` signature. The `setTimeout` method was added in node v0.9.12, see https://nodejs.org/api/http.html#http_response_settimeout_msecs_callback
2016-07-19 17:26:01 -07:00
Vincent Rouille
b54fdb6595 Fix nodejs StringDecoder definition (#10100) 2016-07-19 17:05:08 -07:00
lincoln
47b9697e0d filename argument of fs.watch callback will be type of Buffer, if encoding (#10112)
option is set to 'buffer'
2016-07-19 16:33:12 -07:00
Ivo Stratev
77b1b17093 Improvement to node type definition (#10037)
case 2. Improvement to existing type definition.

From Node.js API Reference (https://nodejs.org/dist/latest-v6.x/docs/api/fs.html#fs_fs_open_path_flags_mode_callback):

fs.open(path, flags[, mode], callback)#
Added in: v0.0.2
path <String> | <Buffer>
flags <String> | <Number>
mode <Integer>
callback <Function>

Only mode is optional in open. Also instead of pure function overloads definitions can be re-written using union type annotaion for open and openSync.
2016-07-09 20:40:37 +09:00
Ivo Stratev
674f651fcb Adding missing constants from module 'constants' (#10034)
Adding missing File System constants from module 'constants'.
2016-07-09 15:34:57 +09:00
Ivo Stratev
7a6da49f3a Now it matches Node.js fs::open* definition (#10032)
From Node.js API Reference (https://nodejs.org/dist/latest-v6.x/docs/api/fs.html#fs_fs_open_path_flags_mode_callback):

fs.open(path, flags[, mode], callback)#
Added in: v0.0.2
path <String> | <Buffer>
flags <String> | <Number>
mode <Integer>
callback <Function>

fs.openSync(path, flags[, mode])#
Added in: v0.1.21
path <String> | <Buffer>
flags <String> | <Number>
mode <Integer>
2016-07-09 15:33:42 +09:00
Jeremy
22bc90a0b2 Corrects readSync by making position argument optional. (#10029) 2016-07-09 15:30:47 +09:00
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