Commit Graph

361 Commits

Author SHA1 Message Date
Paul van Brenk
68eea6297d Merge branch 'master' into types-2.0-20160816
# Conflicts:
#	acl/index.d.ts
#	anydb-sql-migrations/anydb-sql-migrations.d.ts
#	asana/asana.d.ts
#	blue-tape/blue-tape-tests.ts
#	bluebird-retry/bluebird-retry-tests.ts
#	bluebird-retry/bluebird-retry.d.ts
#	bluebird/index.d.ts
#	bookshelf/bookshelf.d.ts
#	consolidate/consolidate.d.ts
#	documentdb/documentdb.d.ts
#	fs-extra-promise/fs-extra-promise.d.ts
#	graphene-pk11/graphene-pk11.d.ts
#	inline-css/inline-css.d.ts
#	inversify/index.d.ts
#	java/java-tests.ts
#	karma/karma.d.ts
#	knex/knex.d.ts
#	koa-router/koa-router.d.ts
#	libxmljs/libxmljs-tests.ts
#	lru-cache/lru-cache.d.ts
#	mz/index.d.ts
#	node-mysql-wrapper/node-mysql-wrapper-tests.ts
#	node-mysql-wrapper/node-mysql-wrapper.d.ts
#	nodemailer/nodemailer.d.ts
#	pify/pify-tests.ts
#	project-oxford/project-oxford-tests.ts
#	project-oxford/project-oxford.d.ts
#	react-router/react-router-tests.tsx
#	react-scroll/react-scroll.d.ts
#	redlock/redlock.d.ts
#	request-promise/index.d.ts
#	rethinkdb/rethinkdb.d.ts
#	sequelize/sequelize.d.ts
#	stamplay-js-sdk/index.d.ts
#	stripe-node/stripe-node.d.ts
#	umzug/umzug.d.ts
2016-08-16 13:56:22 -07:00
Paul van Brenk
8ba335294f Merge pull request #10448 from DefinitelyTyped/bad_doc_comment
Fix some comments that look like JSDoc comments (begin with `/**`) but are not
2016-08-15 16:48:58 -07: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
Nathan Shively-Sanders
15c9fdbdf1 Merge branch 'master' into types-2.0 2016-08-09 15:41:20 -07: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
Mine Yalcinalp Starks
29e75d32e1 Merge remote-tracking branch 'upstream/master' into types2.0-fix 2016-08-05 17:32:30 -07: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
Mine Yalcinalp Starks
8252b2118a Merge remote-tracking branch 'upstream/master' into minestarks-types2.0 2016-08-03 15:19:03 -07:00
Andy Hanson
ba706fe7fc Fix some comments that look like JSDoc comments (begin with /**) but are not. 2016-08-03 11:11:25 -07: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
Yui
cedcbbf05f Merge master into release-2.0 on 07/28 (#10348)
* Changed AtomicBlockUtils and KeyBindingUtil from interfaces to classes with static functions (#10324)

* Fixing a few minor issues in webpack-stream. (#10253)

* Document changes in 0.28 and 0.29 in React Native (#10309)

* RN: Widen limit of refreshControl

* RN: Update NavigationExperimental to 0.28

* RN: Define new method from 0.28

* RN: Promisify requestPermissions per 0.28

* RN: Remove onNavigate method

See: fb0007d853 (diff-04c37ff76f85aea35e8475617539b75fR94)

* RN: Add onNavigateBack method

See: fb0007d853 (diff-04c37ff76f85aea35e8475617539b75fR94)

* RN: Deprecate StatusBarIOS

* RN: Update StyleSheet API per 0.29

* RN: Define KeyboardAvoidingView added in 0.29

* RN: Define saveToCameraRoll added in 0.29

* RN: Define cancellable from InteractionManager

* RN: Add new possible values of flexDirection

* RN: Define lineBreakMode

* RN: Allow zIndex prop

* RN: Allow dimension limits

* RN: Specify type of refreshControl

* RN: Mark properties as optional

* RN: Clarify parameter naming

* RN: Mark optional property as optional

* RN: Definite explicit ref type

* RN: Restore StyleSheet.create to restore compatibility

* Added Headers constructor options to whatwg-fetch (#10313)

* Impl: Updated definitions for oracledb (#10323)

* Update select2 to have selectOnClose option (#10326)

Option documented at https://select2.github.io/options.html#can-i-select-the-highlighted-result-when-the-dropdown-is-closed

* Added definition for react-file-input React component (#10325)

* Added definition for react-file-input React component

* Added newline at end of file

* Added definitions for the react-file-reader-input react component. (#10327)

* Sleep (#10333)

* Add Electron specific versions to process.versions (#10320)

* Fix uuid.js definitions. (#10318)

* protobufjs: updated Message interfaces (#10198)

* protobufjs: updated Message interfaces

* Added ProtoBuf.Util interface

* Fixed load functions of ProtoBuf namespace

Base on the protobuf.js API docmentation.

* use {} instead of Object

Fixed according to PR commit note.

* Multiple minor fixes (#10339)

* better typing of onShouldStartLoadWithRequest in WebViewPropertiesIOS

* Fixes to WebViewProperties

* Missing methods in Navigator

* Fix of Platform.select()

* added support for interfacing with native-modules

* added support for interfacing with native-modules

* added dev variable

* Update to header notes

* Examples: alternative styles declaration

* webcomponents.js: Add typings for Element.createShadowRoot (#10330)

* webcomponents.js: Add typings for Element.createShadowRoot

createShadowRoot is deprecated in the official Shadow DOM spec,
but is the way to attach a shadow root in the current released
version of webcomponents.js.

* webcomponents.js: remove spurious extra line

* webcomponents.js: remove readonly modifier

Not supported until TS2.

* webcomponents.js: add Element.shadowRoot property

* Adding a couple missing highcharts properites (#10340)

* Adding a couple missing highcharts properites

* Fixing indentation

* Indentation

* Move change from master to its corresponding index.d.ts
2016-07-28 19:58:21 -07:00
Milan Burda
bf140ce89a Add Electron specific versions to process.versions (#10320) 2016-07-29 00:24:22 +09:00
Ryan Cavanaugh
b488f3cb5f Merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-27 10:57:46 -07:00
Ryan Cavanaugh
b9245fba39 Merge commit 'upstream/master~350' into merge_7_25 2016-07-26 17:24:39 -07:00
Ryan Cavanaugh
c73630c9a3 Merge commit 'upstream/master~400' into merge_7_25
# Conflicts:
#	angular-translate/angular-translate.d.ts
#	knex/knex.d.ts
#	redux-logger/index.d.ts
#	simplestorage.js/index.d.ts
#	underscore/underscore.d.ts
#	yargs/yargs.d.ts
2016-07-26 13:53:00 -07:00
Ryan Cavanaugh
11d624e656 Merge commit 'upstream/master~500' into merge_7_25 2016-07-26 12:17:32 -07:00
Ryan Cavanaugh
ede3f0a99c Merge commit 'upstream/master~550' into merge_7_25 2016-07-26 11:29:27 -07:00
Ryan Cavanaugh
5d004be8ba Merge commit 'upstream/master~600' into merge_7_25 2016-07-26 00:22:12 -07:00
Ryan Cavanaugh
e4421f5ebe Merge commit 'upstream/master~650' into merge_7_25 2016-07-25 23:49:05 -07:00
Ryan Cavanaugh
5e9440c8ad Merge commit 'upstream/master~700' into merge_7_25
# Conflicts:
#	angular-ui-router/angular-ui-router.d.ts
#	bookshelf/bookshelf-tests.ts
#	bookshelf/bookshelf.d.ts
#	enzyme/enzyme-tests.tsx
#	enzyme/enzyme.d.ts
#	escodegen/escodegen-tests.ts
#	helmet/helmet.d.ts
#	joi/joi.d.ts
#	knex/knex-tests.ts
#	moment/index.d.ts
#	mongoose/index.d.ts
#	pg/pg.d.ts
#	react-select/react-select-tests.tsx
#	soap/index.d.ts
#	ssh2/ssh2.d.ts
#	turf/turf-tests.ts
#	underscore.string/underscore.string.d.ts
2016-07-25 16:10:34 -07:00
Ryan Cavanaugh
35075752ec Merge commit 'upstream/master~750' into merge_7_25 2016-07-25 14:51:03 -07:00
Ryan Cavanaugh
347311a5f0 Partial merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-25 14:26:20 -07: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
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -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
yortus
e1c0f609b7 node.d.ts: add console global var, Console class and "console" module 2016-07-07 12:34:20 +08:00
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Raghav Katyal
89cb02de7d Fixing test failures 2016-06-27 17:40:37 -07: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