Commit Graph

47697 Commits

Author SHA1 Message Date
Brian Crowell
ffbf9da05f chai-http: Add methods keepOpen() and close() to the agent (#27153)
keepOpen() and close() are available both on the base request and on the
agent for controlling the lifetime of the server.
2018-07-10 09:39:22 -07:00
Christian Stornowski
83f67fa71c Added types for vue2-datepicker component (#27108)
* Created types for vue2-datepicker

* Added missing new line

* Enabled strictNullChecks
2018-07-09 15:03:52 -07:00
Dmitry Kucherenko
b68ae4872a Fixed wrong declaration merging (#27142) 2018-07-09 14:26:09 -07:00
Ilya Hritsuk
de14014887 Add elementType to stipe element change event (#27147) 2018-07-09 14:25:40 -07:00
Oliver Joseph Ash
5e54cc92a7 react-redux: use Exclude in Omit (#27019)
The legacy definition doesn't work with TypeScript 2.9.

Fixes https://github.com/DefinitelyTyped/DefinitelyTyped/issues/26510
2018-07-09 14:24:48 -07:00
Lluís Ulzurrun de Asanza Sàez
c6653d383f Fix wrong return types in yesql pg and mysql functions (#27149)
Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

Select one of these and delete the others:

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://github.com/pihvi/yesql/blob/master/yesql.js#L28 and https://github.com/pihvi/yesql/blob/master/yesql.js#L47
- [x] Increase the version number in the header if appropriate.
- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-07-09 14:20:03 -07:00
C. T. Lin
6b30dbbd5d [koa-bodyparser] export bodyParser.Options (#27047)
This will be helpful in https://github.com/apollographql/apollo-server/pull/1282
2018-07-09 14:18:05 -07:00
Jorge López Fueyo
6094d751a5 Add definitions for node-dijkstra (#27126)
* Added types for node-dijkstra

* Removed default export

* Changed name type to String and parameter renamed

* Fixed string types.
2018-07-09 14:13:32 -07:00
Matthew Berryman
fa8d994e79 changes for v5 of react-tag-input (#27039)
* changes for v5 of react-tag-input

* bump version number in header
2018-07-09 14:12:10 -07:00
coolreader18
138e93e12b Add definitions for promise-ftp, promise-ftp-common, and promise-sftp (#27121)
* Add definitions for promise-ftp, promise-ftp-common, and promise-sftp

* Fix linting errors

* Realign some stuff in tsconfig.json

* Add strictFunctionTypes to tsconfig.json

* Use import = in tests
2018-07-09 14:06:57 -07:00
Sebastian Silbermann
83e6356d8a [redux-form]: improve actions.initialize typing (#27017)
- declare explicit function overload instead of implicit via union types
- options can be passed as partials. They are never checked strict.
2018-07-09 14:05:00 -07:00
Vitaliy
e3ecdae4cf Add VictoryCursorContainer, VictoryBrushContainer, VictoryZoomContainer (#27048)
* index.d.ts

https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/victory/index.d.ts
https://github.com/FormidableLabs/victory

* Changed domains types

Changed domains types in:
- brushDomain
- onBrushDomainChange
- zoomDomain
- onZoomDomainChange

* Changed responsive to optional

Changed responsive in VictoryContainerProps to optional
2018-07-09 13:00:37 -07:00
_BLU
f7c1a224c1 Added alpha option to randomColor (#27011) 2018-07-09 12:56:48 -07:00
Frank Li
544f41a894 Further restricted the generic type T (#26995)
* Further restricted the generic type T

Further restricted the generic type T

* Fix CI Build
2018-07-09 12:55:25 -07:00
Miguel
cd061895be Added missing TextInput props on react-native-text-input-mask (#27000)
* Added missing TextInput extension

* Adds missing attributes to the textinput from RN

* Expanded documentation on copied props
2018-07-09 12:54:31 -07:00
DUBREZ Samuel
7c981e08e5 @types/restify (7.2) : Add maxFileSize to BodyParserOptions interface (#26991)
* Add maxFileSize to MultipartBodyParser interface

* @types/restify (7.2) : Add maxFileSize to BodyParserOptions interface
2018-07-09 12:53:05 -07:00
woutvdd
52b444905c Update index.d.ts (#26981) 2018-07-09 12:52:41 -07:00
Vincent Bel
916f644758 [redux-form] add typings for v7.4 (#26977)
* redux-form: new API of v7.4

* [redux-from]: support redux@4
2018-07-09 12:52:12 -07:00
hi_Haowen
696b8b14dd Add Types for swagger-ui-dist (#27138) 2018-07-09 12:49:59 -07:00
Michele Bombardi
8355056eb3 New package: react-native-toast-native (#27148) 2018-07-09 12:49:05 -07:00
Jack Wearden
34adabadd6 [highland] - 2.12.0 toNodeStream method (#27133)
* [highland] add support for 2.12.0 toNodeStream()

* [highland] bump version in header
2018-07-09 11:33:29 -07:00
Banst
16b94cdf1a [ioredis] add missing attributes to Pipeline interface (#27150)
* 🐛 add missing attribute to Pipeline interfacce

* Revert "🐛 add missing attribute to Pipeline interfacce"

This reverts commit d45b38583de61af98cd4f749ff8b27b6d8801c37.

* 🐛 add missing attributes to Pipeline interface (without auto format)
2018-07-09 11:26:57 -07:00
Ben LeFevre
8c23206f59 @types/documentdb: Use specified return type in queryDocuments (#27021)
`queryDocuments` already has a type variable but it is not being used in the return type.
This PR simply merges the RetrievedDocument type with the input type.
2018-07-09 11:26:39 -07:00
silh
ebcb52fb25 Added support for className option in ImageOverlayOptions. (#27077)
ImageOverlayOptions extends InteractiveLayerOptions as described in Leaflet docs.
Added bubblingMouseEvents option to InteractiveLayerOptions.
2018-07-09 11:25:33 -07:00
Jack Coulter
50c50a8eb2 [redux-first-router] Update types for compatibility with redux@^4.0.0 (#26975)
* Update redux-first-router types for compatibility with Redux 4

* Fix tests for redux-first-router
2018-07-09 11:25:04 -07:00
Alexander T
d0aa166405 Update types based on new react-native 0.56 version (#27136) 2018-07-09 11:24:28 -07:00
AJ Richardson
e3ff16475b lodash: fix pickBy for dictionary types (#27131)
Fixes  #24133 (I know it's closed but as per the discussion there, it wasn't fixed properly before).

Please fill in this template.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: N/A
- [ ] Increase the version number in the header if appropriate. N/A
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-07-09 11:22:37 -07:00
Chris Abrams
8815592a2a Modify three options missing from webpack-dev-middleware and webpack-hot-middleware (#27116)
* Add writeToDisk option

* Add reload option

* make sure writeToDisk can also be a function

* enable index option to be boolean type
2018-07-09 11:21:20 -07:00
Davin Kevin
215834ee2f fix(extend): improve signature of interface ExpectExtendMap (#27124)
Jest custom matcher support both `string` and `() => string` for message property
> d3a6a7400a/packages/expect/src/index.js (L351)
2018-07-09 11:18:03 -07:00
styu
3500f2e9ea Update virtual-dom typings with constructors and type-guards (#27112)
* Update virtual-dom typings with constructors and type-guards

* Lint

* newline

* Fix tests, update version

* Fix patch typings

* New line
2018-07-09 11:15:56 -07:00
Sou Niyari
50536aeb06 Fix a typo in a monthsShort type (#27119) 2018-07-09 11:15:35 -07:00
Josh Goldberg
ff3bccf613 Added a few missing tests for Jest (#27134) 2018-07-09 11:13:41 -07:00
Ryan Cavanaugh
42fb16dc0f Lower atob required version to 2.1 (#27114)
This file doesn't use anything that needs 2.8
2018-07-09 10:01:01 -07:00
ikokostya
03eede6951 [got] Allow primitive types in JSON body for POST requests (#27109) 2018-07-06 14:24:26 -07:00
Alex Jerabek
2aad925037 Adding run<T> overload remarks (#27115) 2018-07-06 14:24:04 -07:00
Andrey Tselishchev
eb735f86b6 Update [@types/bson] to match js-bson@1.0.6 (#27098)
* [@types/bson] Updated BSON class definitions

* Updated BSON.serialize (changed the way how options are passed)
* Updated BSON.deserialize (added missing options, removed `isArray` argument)
* Added BSON.serializeWithBufferAndIndex
* Added BSON.deserializeStream

* [@types/bson] Updated BSON types

* Binary: Made static constants 'readonly', added comments
* ObjectID: 'equals' can accept string, added comments
* Code, DBRef, Double, Decimal128, MaxKey, MinKey, ObjectID, BSONRegExp, Symbol: Added comments

* [@types/bson] Updated Long & Timestamp BSON types

* In original js-node@1.0.x code 'Timestamp' is a 100% copy-paste of 'Long'
  with 'Long' replaced by 'Timestamp' (changed to inheritance in js-node@2.0.0).
  Do avoid duplication in typings a base class 'LongLike' was introduced and both 'Long'
  and 'Timestamp' are inherited from 'LongLike'.
* Made static constants 'readonly', fixed return-type for greaterThan and greaterThanOrEqual
  (boolean), renamed argument for shiftLeft, shiftRight, shiftRightUnsigned, added comments

* [@types/bson] Changed header version number to 1.0.6
2018-07-06 11:55:43 -07:00
Matt Welke
2ae9025f50 Fixed Bucket.combine method type in @types/google-cloud__storage (#27105)
* Fixed Bucket.combine method type.

* Add name to definitions by comment, per readme instructions.

* Bump version in header, per PR template instructions.

* Fix brainfart.
2018-07-06 11:52:07 -07:00
Francisco Álvarez
d7b48c9034 Fix @types/jest-each. It needs to export JestEach as default (#27061)
* Update index.d.ts

* Update jest-each-tests.ts

* use `import each from "jest-each";`
2018-07-06 10:54:15 -07:00
Brian Donovan
5b02b39251 Use void instead of undefined to represent lack of value. (#27106)
Using undefined means async functions must have a `return undefined;` rather than omitting the return value altogether, as would be the most natural thing to do in such functions.
2018-07-06 10:31:37 -07:00
Alex Jerabek
651e050863 [office-js] Adding links to conceptual Outlook topics in remarks (#27107)
* Linking Outlook Mode to conceptual page

* Pointing Outlook mode references at conceptual topics

* Fixing Table Brackets

* Adding missing table
2018-07-06 10:31:13 -07:00
Rafal Proszowski
78633c7a0d Add cookiejar types and improve superagent (#27104)
* Add cookiejar types

At current, it is not existent. It is used by the `superagent` library
but also not being typed therefore omitted.

It's rather lazy adaptation, with copy and pasted documentation and
tests.

A commit will follow, to extend the `superagent` library.

* Extend agent with cookie jar

Now that there are types for `cookiejar` library, we can actually make
sure it also exists here as it is used in the original JS libary[1].

[1]: https://github.com/visionmedia/superagent/blob/master/lib/node/agent.js#L31
2018-07-06 10:06:41 -07:00
Dasa Paddock
841c55fc8c Update for ArcGIS API for JavaScript version 4.8 (#27089) 2018-07-06 09:54:57 -07:00
Hao Yang
031866e080 New definitions for [agora-rtc-sdk] (#27097)
* initial types for agora-rtc-sdk

* set strictFunctionTypes to true

* fixed lint-related

* fixed lint error throw by ci
2018-07-06 09:50:53 -07:00
Sam A. Horvath-Hunt
cbc9a55269 Add typings for react-copy-write (#27099)
* Add initial types for react-copy-write

* render functions can be `null` and fixes for select prop

`selector` is named `select` now. Also I believe it should take an array of selectors.

* Improve react-copy-write typings; bump min TS to 2.8

* Add additional potential solution in comment

* Make RenderFn args DeepReadonly

* Add state param to `MutateFn`

* Add missing semicolon
2018-07-06 09:50:14 -07:00
Eric Hallander
4fa0a09b77 Add types for socketio-jwt package. It may be unsupported, but it is still used. (#27088)
* Types file for socketio-jwt

I am tired of not having a types file for this package

* Should have left the names alone

* fixed lint findings

Ran the lint test.
2018-07-06 09:48:52 -07:00
Brandon
89ec5936d6 New definitions for [slate-plain-serializer], [slate-html-serializer], [slate-base64-serializer] (#27087)
* added plain, html, and base64 serializer definitions

* add version numbers, fix tslint files

* missed renaming the package in comment
2018-07-06 09:48:22 -07:00
segayuu
daf0c80417 [@types/hexo-util] Create @types/hexo-util (#27091)
* create hexo-util files (from dts-gen)

* first implament

* fix types

* simple test

* append setting: strictFunctionTypes

* test strict check

* Pattern Generic class

* Add definition
- fix lint
2018-07-06 09:45:51 -07:00
Michele Bombardi
697b7e6029 react-native-popup-dialog: PopupDialog show and dismiss methods typings (#27065)
* react-native-popupdialog: PopupDialog show and dismiss method typings

* react-native-popupdialog: PopupDialog show and dismiss methods typings

* react-native-popup-dialog show/dimiss methods tests

* tslint
2018-07-06 09:40:42 -07:00
Dominique Rau
a315fbc373 feat(fs-extra): replace fs.symlink.Type with local copy FsSymlinkType (#27072) 2018-07-06 09:40:05 -07:00
Harris Lummis
be2fc3762c [stampit] moved Stamp type to reside in main namespace (#26986)
* UPDATE: moved Stamp type to within main exported namespace to allow access when imported

* UPDATE: added tests for new format
2018-07-06 09:39:38 -07:00