Commit Graph
98 Commits
Author SHA1 Message Date
chugaev 2306c80ff7 Optional option keepOpen of child_process#MessageOptions. 2017-07-12 20:02:51 +03:00
chugaev a3fb24fb08 node: Updated definitions and tests for ChildProcess#send method 2017-07-12 02:11:00 +03:00
chugaev dc3ec8e3c2 node: Updated definitions and tests for ChildProcess#send method 2017-07-12 02:06:50 +03:00
Augustin Peyrard 370d4fca00 fix: in node.readline cursorTo allows only x coordinate
Like this we are easily able to move in the current line with
absolute x-axis coordinate.
2017-07-01 19:15:50 -07:00
Paul van BrenkandGitHub 9579267a28 Merge pull request #17564 from Flarna/node_async_hooks
[node] Add async_hooks module
2017-06-29 10:54:22 -07:00
Flarna daa1227076 correct whitespace related lint error 2017-06-29 09:28:22 +02:00
Flarna d872ea26ee object => Object to keep compat with TS <2.3 2017-06-28 22:21:57 +02:00
Paul van BrenkandGitHub 4d12d79360 Merge pull request #17559 from brianjleeofcl/master
[node] Add missing properties in util.promisify and util.inspect
2017-06-28 11:42:05 -07:00
Flarna 743175f9f2 Merge remote-tracking branch 'upstream/master' into node_async_hooks 2017-06-28 20:39:44 +02:00
Paul van BrenkandGitHub fca29bc6e7 Merge pull request #17562 from kimushu/fix-writefilesync
Add fs.writeFile(Sync) / fs.appendFile(Sync) overloads and tests
2017-06-28 11:22:18 -07:00
Paul van BrenkandGitHub 72198b3629 Merge pull request #17380 from scarabedore/master
Fixup for node types, fs.createWriteStream function.
2017-06-28 10:39:06 -07:00
Paul van BrenkandGitHub 8edffc1e2e Merge pull request #17353 from octo-sniffle/node
[node] modified crypto.verfier.verify
2017-06-28 10:06:07 -07:00
kimu_shu ff3da11908 Make callback parameter mandatory 2017-06-28 23:02:55 +09:00
kimu_shu 1b5e242876 Add overloads for writeFile, appendFile and appendFileSync 2017-06-28 21:55:08 +09:00
Flarna 0d8b5f7688 [node] Add async_hooks module
see https://nodejs.org/dist/latest-v8.x/docs/api/async_hooks.html
2017-06-28 10:30:47 +02:00
Brian Lee f8156fb34a Add util.inspect.defaultOptions property 2017-06-28 00:48:12 -07:00
kimu_shu 1205f064bd Add fs.writeFileSync overloads and tests 2017-06-28 11:58:50 +09:00
Brian Lee a8c85a0e3f Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped 2017-06-27 18:00:41 -07:00
Brian Lee 42af84cc3a Add properties for util.inspect and util.promisify 2017-06-27 17:24:31 -07:00
Brian Lee a70a977fe4 Add additional tests 2017-06-27 17:22:48 -07:00
Nicolas VoigtandGitHub 1c578bb8dd Merge branch 'master' into node2 2017-06-28 00:09:01 +02:00
Nicolas VoigtandGitHub df9abee747 Merge branch 'master' into node 2017-06-28 00:07:03 +02:00
Nicolas VoigtandGitHub 4ebb655fa6 setEncoding argument to be mandatory 2017-06-27 12:01:43 +02:00
Chigozirim CandGitHub 8f5e6ed8ed Merge pull request #1 from DefinitelyTyped/master
Merge usptream
2017-06-26 19:08:48 -06:00
Chigozirim C 135e6ac043 node: Add cork and uncork type definitions
Fixes: #16726
2017-06-26 18:04:13 -06:00
Michiel de Bruijne f8c68213bf [node] set correct type for process.env and fix node dependents 2017-06-24 21:39:39 +02:00
Nicolas Voigt dddc766369 setEncoding in stream interface 2017-06-24 14:35:27 +02:00
AndyandGitHub 15dcb45606 node: Expand allowed arguments to http(s).get / request (#17433)
* Expand allowed arguments to http(s).get / request

* `url.parse` returns `URL`, not `Url`. Remove `Url`.

* Add legacy Url back and have RequestOptions accept a string port

* Revert type of `parse`
2017-06-23 15:00:00 -07:00
Sebastien PUECH 825083d238 Fixed the bind method for UDP. 2017-06-22 16:57:50 +02:00
Sebastien PUECH e86d4cc126 Fixup for "node" types, fs.createReadStream and fs.createWriteStream functions. 2017-06-22 13:35:40 +02:00
Nicolas Voigt 9d510d71fe added author reference 2017-06-21 12:55:06 +02:00
Nicolas Voigt f2df68de01 modified crypto.verfier.verify 2017-06-21 12:20:28 +02:00
Nathan Shively-SandersandGitHub 5cfe858c2f Merge pull request #17277 from mdebruijne/ServerResponse
[node] add missing methods to http.ServerResponse class
2017-06-20 14:55:06 -07:00
Andy Hanson 96545154cc bittorrent-protocol: Use same default event handler as stream.Readable 2017-06-20 10:26:49 -07:00
Nathan Shively-SandersandGitHub 76ebf7a5f8 Merge pull request #17305 from DefinitelyTyped/scarabedore-master
Followup to #17154 -- fix node-static-tests
2017-06-20 08:37:30 -07:00
Michiel de Bruijne a5d51727a3 [node] add type for http.ServerResponse headers 2017-06-20 12:28:40 +02:00
Michiel de Bruijne 79a26194f7 [node] add missing methods to http.ServerResponse class 2017-06-20 05:30:38 +02:00
Flarna f743880056 Merge remote-tracking branch 'upstream/master' into node_process_signals 2017-06-20 01:10:26 +02:00
Flarna 74fd1f601d - Added dedicated types for listeners to avoid unneeded copy/paste.
- Added overloads for listen() to cover issue discussed in latest comments of #16705
2017-06-20 01:01:48 +02:00
Nathan Shively-Sanders 3fe753b21c Merge branch 'master' of https://github.com/scarabedore/DefinitelyTyped into scarabedore-master 2017-06-19 14:12:03 -07:00
Mine StarksandGitHub 4accb34c83 Merge pull request #17139 from mdebruijne/node_http_server_listen
[node] port is optional in server.listen
2017-06-16 17:33:13 -07:00
Mine StarksandGitHub 793b3090da Merge pull request #17027 from ikokostya/node-8
[node] Add definition for Node.js v8
2017-06-16 16:46:53 -07:00
Madhukar KedlayaandAndy edbb4de95d Creating a separate interface for IncomingMessageHeaders in node/index.d.ts (#17157)
* Creating a separate interface for IncomingMessageHeaders

This allows for IncomingMessage.headers types to be extensible per project. Suppose a node service expects a fixed set of headers of certain type (say string), that service can specify custom IncomingMessageHeaders with more concrete types defined.
For example

```
interface IncomingMessageHeaders {
    "host": string;
    "set-cookie": string[]
}
```

* Changing IncomingMessageHeaders defn

This definition adds undefined in addition to string and string[].
2017-06-16 10:21:58 -07:00
Nathan Shively-Sanders 4874667de9 Fix primitive weak type errors
These weak type errors were not caught in TS 2.4 RC. The final TS 2.4
will catch weak type errors with primitives, so this PR fixes those
now-caught errors.
2017-06-15 11:46:46 -07:00
Flarna c6eb2e6f07 split events newListener/removeListener for Process 2017-06-14 09:14:02 +02:00
Flarna 5686653759 * remove catch-all variants for on/once/... in Process
* add "newListener" | "removeListener" variants
* correct emit() functions for "cluster"
* add some tests
2017-06-13 22:08:10 +02:00
Sebastien PUECH 76260f6cf3 Fix "connect" method for node typings. 2017-06-13 16:24:43 +02:00
Flarna 15e315003c * Add missing OS signals
* add missing process APIs
2017-06-13 13:05:18 +02:00
Michiel de Bruijne 97d232d5f7 [node] port is optional in server.listen 2017-06-13 04:23:33 +02:00
Nathan Shively-SandersandAndy cd62ed775d Add 'message' to process.on (#17137)
It was omitted by mistake in #16705
2017-06-12 16:36:37 -07:00