Commit Graph

63 Commits

Author SHA1 Message Date
Borek Bernard
dcaa0c94d8 url and uri options objects are now string | Url 2016-11-06 17:25:24 +01:00
Daniele Monteleone
92f1e73b1c Update request.d.ts
Use `string | null` for CoreOptions.encoding type as the encoding has to be null in order to get a buffer as the body (needed to download files). [see documentation](https://github.com/request/request#requestoptions-callback)
2016-10-18 21:01:27 +02:00
Ryan Cavanaugh
f55497c988 Merge remote-tracking branch 'upstream/master' into merge_7_25
# Conflicts:
#	convict/convict.d.ts
#	multer/multer.d.ts
#	nodemailer/nodemailer.d.ts
#	react-bootstrap-table/react-bootstrap-table.d.ts
#	react-dnd/react-dnd-tests.ts
#	react-native/index.d.ts
#	request/request.d.ts
#	restify/index.d.ts
#	webpack/webpack.d.ts
#	ws/ws.d.ts
2016-07-27 16:12:49 -07:00
Ryan Cavanaugh
b488f3cb5f Merge remote-tracking branch 'upstream/master' into merge_7_25 2016-07-27 10:57:46 -07:00
Ryan Cavanaugh
e4421f5ebe Merge commit 'upstream/master~650' into merge_7_25 2016-07-25 23:49:05 -07:00
Amin Cheloh
658d360c6a request: update project url 2016-07-26 09:09:08 +07:00
Leon Yu
8de2997128 Fix form-data for ES6 module (#9892) 2016-07-23 19:41:11 -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
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
cjbarth
5f9cf2d84c Update Options.ca to use same type as NodeJs (#9399)
ca: A string, Buffer or array of strings or Buffers of trusted certificates in PEM format.
2016-05-24 22:53:46 +09:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
fa204a87d1 Remove obsolesced reference comments 2016-04-27 21:53:46 -07:00
Ryan Cavanaugh
337587de8c Rename external modules to index.d.ts 2016-04-27 21:30:22 -07:00
Ryan Cavanaugh
e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
Ryan Cavanaugh
4a433abbf4 Unwrap all lone ambient external modules 2016-04-22 14:12:45 -07:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
davidyaozw
8a1b587ca5 Update request-tests.ts
fix indent
2016-03-11 23:14:43 +08:00
davidyaozw
3a8543ff3d Update request.d.ts
import https module to fix ci failure
2016-03-11 21:46:50 +08:00
davidyaozw
9bbebb466d Update request.d.ts
fix according to review comment
2016-03-11 11:56:12 +08:00
eyaozhi
0a82566305 add agent parameter 2016-03-10 18:27:24 +08:00
Ilya Mochalov
abc2bcfb85 node: improved EventEmitter's definition with this-typing 2016-02-25 02:10:08 +05:00
Leo Liang
90c7b5653c Fix #7979, request.d.ts : Options union types 2016-02-06 11:07:09 +08:00
Christopher Currens
e252a08812 Add specialized overloads for request events 2016-01-25 21:05:34 -08:00
Norgerman
0b23833fb1 add useQuerystring into request.CoreOptions 2016-01-15 10:58:26 +08:00
Joe Skeen
c5c759ac6c some formatting changes 2015-11-13 09:50:55 -07:00
Joe Skeen
e3c46899aa Fix some fringe cases for specifying a default URL or URI 2015-11-13 09:23:20 -07:00
Rich Adams
7f14e4361c Adding optional uri/url optinos to interface returned by defaults 2015-11-06 16:11:50 -08:00
Rich Adams
f1a3678c78 Having defaults add the Optional uri and url to the TOptions aligns better with the pattern 2015-11-06 11:57:04 -08:00
Rich Adams
cb14917275 Merge branch 'upstream-master' into request-fix-defaults 2015-11-05 14:42:43 -08:00
Rich Adams
fe50f106b0 Adding DefaultsOptions that allows for optional uri and url when using the defaults function 2015-11-04 16:02:57 -08:00
Rich Adams
40f2f63de6 Adding baseUrl optional option that is optional 2015-11-04 16:02:17 -08:00
Rich Adams
8f233e8bc3 Fixing tabs, the folder originally had soft tabs 2015-11-04 16:01:37 -08:00
Joe Skeen
0d92319be4 Merge branch 'request-promise' of https://github.com/joeskeen/DefinitelyTyped; branch 'master' of https://github.com/borisyankov/DefinitelyTyped into request-promise
* 'request-promise' of https://github.com/joeskeen/DefinitelyTyped:

# By Ilya Mochalov (83) and others
# Via Masahiro Wakame (243) and others
* 'master' of https://github.com/borisyankov/DefinitelyTyped: (473 commits)
  provide the explicit types in geolocation-tests to make the build happy
  in ng-cordova files correct the conventions for multiple authors
  add the ngCordova type definitions for network,deviceOrientation,deviceMotion, appAvailability,geolocation,emailComposer and dialogs
  lodash: signatures of the method _.forEach have been changed
  lodash: signatures of the method _.some have been changed
  lodash: signatures of the method _.compact have been changed
  lodash: signatures of the method _.startsWith have been changed
  lodash: signatures of the method _.callback have been changed
  Add delegate and undelegate methods to View
  Updated net.connect, combined url.Url and url.UrlOptions.
  fix angularjs/angular-resource.d.ts
  Added definition for inline-css
  rename the folder from ngCordova to follow the convention similar to bower & npm
  lodash: signatures of the method _.map changed
  added missing declaration for optional dynamicHash property on DurandalRelativeRouteSettings to support TypeScript 1.6 tightened compilation rules
  lodash: signatures of the method _.padLeft have been changed
  lodash: signatures of the method _.snakeCase have been changed
  lodash: signatures of the method _.propertyOf have been changed
  lodash: signatures of the method _.parseInt have been changed
  lodash: signatures of the method _.matchesProperty have been changed
  ...

Conflicts:
	request-promise/request-promise.d.ts
	request/request.d.ts
2015-11-04 10:43:58 -07:00
Jacob Eggers
1d7d9e514e Fixes #6489 2015-10-28 00:05:07 -07:00
Kenneth Pedersen
c86e7bad40 followRedirect is documented to also accept a function 2015-10-17 22:41:25 +02:00
Joe Skeen
2d23048aa0 Use generic Options to allow for custom options from request-promise 2015-10-07 11:12:48 -06:00
Joe Skeen
98184ee41d Added back missing options and fixed promise exposure 2015-10-07 10:51:29 -06:00
Joe Skeen
b06d25ff7a Fix implicit any issues 2015-10-07 10:01:23 -06:00
Joe Skeen
31d1cc43cd Change request-promise to use full 'request' API 2015-10-07 09:41:45 -06:00
Joe Skeen
202d240a0a 'request': Added more tests from project page and fixed definitions accordingly 2015-10-07 09:07:44 -06:00
Masahiro Wakame
81ebe8998d Merge pull request #5849 from Shiak1/patch-1
Added formData to Options interface
2015-09-27 10:43:03 +09:00
Shiak1
09d0097449 Update AuthOptions interface.
Missing bearer token https://github.com/request/request#http-authentication
2015-09-21 14:11:48 -04:00
Shiak1
48c9d444f3 Update request.d.ts
Make formData optional.
2015-09-20 13:37:55 -04:00
Laurent, David | ISDOD
14a002c077 qs should be any
if qs is defined as an object type then if we want to access it like
this it will generate an error :

var requestOpt: request.Options = {
json: true,
qs: {
param1: '',
param2: {}
},
url: '',
};

requestOpt.qs.param1 // <= error
2015-09-18 14:03:53 +09:00
Shiak1
813a3c7490 Added formData to Options interface
Fix issue #5787
2015-09-16 19:07:05 -04:00