Commit Graph

554 Commits

Author SHA1 Message Date
Andy
ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Andy
10d46fc5fe Fix tsconfig for node v6 (#13924) 2017-01-10 18:06:03 -08:00
Rogier Schouten
8928fc6a3d Node: add timeout member to http.RequestOptions interface (#13865)
* Start typings for Node 7

* Add timeout member to RequestOptions.
2017-01-10 15:30:17 -08:00
Steve Ognibene
4e40336845 Remove const enum label from node (now works with --isolatedModules) 2017-01-09 13:36:08 -05:00
Andy
2f71174636 Restructure to support old versions (#13811)
* Restructure to support old versions

* Fix tests
2017-01-06 12:36:57 -08:00
Pat
48fb075ada Add isPaused to NodeJS.ReadableStream (#13785) 2017-01-06 06:37:13 -08:00
Andy
bc1da27217 node: path.join arguments must be strings (#13715) 2017-01-04 12:57:51 -08:00
a8775
18e96e67d7 add HeapInfo interface to v8 module (#13677)
* add HeapInfo interface to v8 module

Documentation:
https://nodejs.org/dist/latest-v7.x/docs/api/v8.html#v8_v8_getheapstatistics

Changes:
- add HeapInfo interface to the v8 module, add missing fields: malloced_memory, peak_malloced_memory, does_zap_garbage
- change return type for the method: v8.getHeapStatistics()

* change does_zap_garbage type to be 0|1

* add const enum DoesZapCodeSpaceFlag type
2017-01-03 10:21:31 -08:00
Andy
e2988a134e Merge pull request #13605 from jefff/fix-dgram-socket-message-event
In node, fix dgram.Socket message event
2016-12-29 12:18:58 -05:00
Jefff Nelson
f2c1afd1c8 Fix dgram.Socket message event 2016-12-29 01:50:02 -06:00
Andy Hanson
2e869dbdc0 Merge branch 'types-2.0' into merge_28dec 2016-12-28 12:38:06 -08:00
Horiuchi_H
81629d091f Merge pull request #13358 from a8775/master
add process.cpuUsage() method
2016-12-27 18:41:33 +09:00
Ian Copp
94c44cad2e Fix dgram.Socket#ref and #unref (#13242)
These two methods both return the socket, than being void.
2016-12-25 04:54:35 +09:00
Andy Hanson
4156318481 Move "_debugger" types into "node" 2016-12-20 08:01:59 -08:00
Andy
a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
a8775
3f5f706484 Typings of the cpuUaage() and definition for CpuUsage interface.
Typings of the cpuUsage() method and definition of the CpuUsage interface by analogy to memoryUsage().
2016-12-19 09:52:33 +01:00
a8775
64be0771d9 add process.cpuUsage() method 2016-12-15 13:53:14 +01:00
Nathan Shively-Sanders
6f031ede9f Merge pull request #12828 from xiemaisi/node-event-module
Improve model of Node.js `events` module.
2016-12-12 08:32:45 -08:00
Max Schaefer
2f6ac1cf94 Improve model of Node.js events module.
The module directly exports the `EventEmitter` class, so `typeof require("events") === 'function'`.

This is modelled in the same way as for modules `assert` and `stream` using an auxiliary `internal` class.
2016-12-02 16:24:01 +00:00
Paul van Brenk
40e416a33c Merge master into typings-2.0 2016-11-29 16:51:33 -08:00
Paul van Brenk
b878e08fa3 Merge pull request #12488 from Flarna/node_add_process_mainmodule
Add process.mainModule, improve NodeModule
2016-11-29 13:50:26 -08:00
Nathan Shively-Sanders
a526a1512e Merge pull request #12804 from iainmcgin/tlsfix2
Add callback parameter to tls.Server.close
2016-11-23 14:42:58 -08:00
Nathan Shively-Sanders
66925b58c0 Merge pull request #12721 from maghis/zlib-result-types
node: Zlib result types
2016-11-23 10:27:10 -08:00
Nathan Shively-Sanders
983c93531a Merge branch 'types-2.0' into types-merge-20161118 2016-11-21 16:16:59 -08:00
maghis
b99e420919 Added support for compressing strings 2016-11-21 10:52:22 -05:00
Massimo Andreasi Bassi
b70ba5a49e Missing property socket.destroyed (#12639)
* Missing property `socket.destroyed`

https://nodejs.org/dist/latest-v4.x/docs/api/net.html#net_socket_destroyed

* Added socket.destroyed tests

* Moved socket.destroyed to index
2016-11-21 06:51:25 -08:00
Julien CROUZET
fb7fbd28b4 isTTY is optional 2016-11-21 12:00:08 +01:00
Julien CROUZET
b72a93a227 isTTY property on ReadableStream and WriteableStream 2016-11-21 11:47:33 +01:00
Mine Yalcinalp Starks
253e456e3c Merge remote-tracking branch 'upstream/master' into types-2.0
Many badly resolved merge conflicts
2016-11-18 20:42:46 -08:00
Iain McGinniss
8f81a207fd Add callback parameter to tls.Server.close
See node definition in the docs here:
https://nodejs.org/api/tls.html#tls_server_close_callback
2016-11-18 16:46:17 -08:00
Mine Yalcinalp Starks
ada1df33d6 Merge commit 'upstream/master~440' into types-2.0 2016-11-18 14:21:35 -08:00
Mine Yalcinalp Starks
02cc93be74 Merge commit 'upstream/master~460' into types-2.0 2016-11-18 14:06:56 -08:00
Mine Yalcinalp Starks
ece81946f7 Merge commit 'upstream/master~500' into types-2.0 2016-11-18 13:09:27 -08:00
Flarna
99a61dd124 correct merge error 2016-11-16 17:03:19 +01:00
Flarna
c34024a0ed Merge branch 'types-2.0' into node_add_process_mainmodule 2016-11-16 16:59:31 +01:00
maghis
64d96d263a Merge branch 'types-2.0' of https://github.com/DefinitelyTyped/DefinitelyTyped into zlib-result-types 2016-11-16 10:33:28 -05:00
maghis
bcf581c299 Added Buffers as return types of zlib helpers 2016-11-16 10:30:28 -05:00
Lukas Zech
a488f3fbb4 Merge remote-tracking branch 'upstream/types-2.0' into types-2.0 2016-11-14 20:40:20 +01:00
Lukas Zech
fe4f88362d Add test to check type of ReadStream.bytesRead and ReadStream.path 2016-11-12 11:02:54 +01:00
Lukas Zech
057e24868a Add 'bytesRead' and 'path' to fs.ReadStream 2016-11-10 17:04:54 +01:00
Lukas Zech
125165e3c2 Add 'bytesRead' and 'path' to fs.ReadStream 2016-11-10 16:10:07 +01:00
Kanchalai Tanglertsampan
1200f753d6 Merge branch 'master' into types-2.0
# Conflicts:
#	.gitignore
#	ajv/ajv.d.ts
#	angular-material/angular-material.d.ts
#	angular-protractor/angular-protractor.d.ts
#	angularjs/angular-tests.ts
#	angularjs/angular.d.ts
#	aws-sdk/aws-sdk.d.ts
#	electron-devtools-installer/electron-devtools-installer-tests.ts
#	electron-json-storage/electron-json-storage-tests.ts
#	electron-notifications/electron-notifications.d.ts
#	electron-notify/electron-notify.d.ts
#	electron-window-state/electron-window-state.d.ts
#	electron/electron-prebuilt.d.ts
#	enzyme/enzyme.d.ts
#	eventemitter3/eventemitter3-tests.ts
#	eventemitter3/eventemitter3.d.ts
#	graphql/graphql.d.ts
#	highcharts/highcharts.d.ts
#	immutable/immutable.d.ts
#	inquirer/inquirer.d.ts
#	jasmine/jasmine.d.ts
#	joi/joi.d.ts
#	jquery.dataTables/jquery.dataTables-tests.ts
#	jquery.dataTables/jquery.dataTables.d.ts
#	kafka-node/kafka-node.d.ts
#	kefir/kefir.d.ts
#	kendo-ui/kendo-ui.d.ts
#	koa/koa.d.ts
#	leaflet/leaflet.d.ts
#	lodash/lodash.d.ts
#	mapbox-gl/mapbox-gl.d.ts
#	material-ui/material-ui.d.ts
#	menubar/menubar.d.ts
#	mongodb/mongodb.d.ts
#	needle/needle-tests.ts
#	needle/needle.d.ts
#	noble/noble.d.ts
#	node/node.d.ts
#	pegjs/pegjs.d.ts
#	pixi.js/pixi.js.d.ts
#	polymer/polymer.d.ts
#	quill/quill-tests.ts
#	quill/quill.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-fa/react-fa-tests.tsx
#	react-fa/react-fa.d.ts
#	react-native/react-native.d.ts
#	react-select/react-select.d.ts
#	react/react.d.ts
#	threejs/three-vrcontrols.d.ts
#	threejs/three-vreffect.d.ts
#	toastr/toastr.d.ts
#	validator/validator.d.ts
#	webpack/webpack.d.ts
#	winston/winston.d.ts
2016-11-09 17:20:41 -08:00
Flarna
5ce9b5b534 Add process.mainModule, improve NodeModule
Add mainModule in process. See https://nodejs.org/dist/latest-v6.x/docs/api/process.html#process_process_mainmodule

improve require.main See https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_accessing_the_main_module

improve NodeModule See https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_children and https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_parent
2016-11-04 15:50:58 +01:00
John Vilk
a9a732cb4d [Node] errno is a number, not a string. (#11890) 2016-11-02 23:33:27 +09:00
Leo Rudberg
769e789454 Fix ordering of Server.listen definitions (#12399)
The version of `Server.listen` that takes a `ListenOptions` as the first argument should come before the versions that take `any` as the first argument. For example, even if a `ListenOptions` object is given, VSCode will assume it is `any` in its helper text. I find that not as preferable for type-safety reasons ( avoid all `any`s ;) ).
2016-11-01 23:00:44 +09:00
Flarna
45c5bcd854 Add process.mainModule, improve NodeModule (#12257)
* Add process.mainModule, improve NodeModule

Add mainModule in process. See https://nodejs.org/dist/latest-v6.x/docs/api/process.html#process_process_mainmodule

improve require.main see https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_accessing_the_main_module

improve NodeModule see https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_children and https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_parent

* Correct require.main and NodeModule
2016-10-28 23:13:14 +09:00
TonyYang
896f939be7 [node] Update events for repl (#12262)
* Update events for repl

* Update related tests

* Fix argument
2016-10-28 22:55:20 +09:00
TonyYang
8791a14cc5 [node] Update events for readline (#12261)
* Update events for readline

* update related tests
2016-10-28 22:54:20 +09:00
TonyYang
38f3096f49 [node] Update events for child_process (#12260)
* Update events for child_process

* Add related tests
2016-10-28 22:54:00 +09:00
zhengbli
5a5ababe92 Merge remote-tracking branch 'origin/master' into zhengbli_merge 2016-10-24 22:48:38 -07:00