Commit Graph
47672 Commits
Author SHA1 Message Date
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
> https://github.com/facebook/jest/blob/d3a6a7400a89b857a63d939fc5664ae8a2dfbbb2/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
Dominic Carrington 3aa3328ffd [bootstrap] False is valid for interval option in carousel (#27078)
* [bootstrap] False is valid for interval in carousel

* [bootstrap] Keep consistant spacing
2018-07-06 09:38:55 -07:00
Dasa Paddock 91692ac5ea Update for ArcGIS API for JavaScript version 3.25 (#27085) 2018-07-06 09:38:41 -07:00
Guillaume RODRIGUEZ 779c9f9a59 [Chart.js] Fix plugins global registration and order (#27046)
* [Chart.js] Fix plugins global registration

* [Chart.js] Fix plugin callback order

* Trailing whitespace
2018-07-06 09:34:38 -07:00
Daniel Rosenwasser bd2b1d6be9 Merge pull request #26678 from DefinitelyTyped/strictAssert
Added 'strict' to the 'assert' module.
2018-07-05 15:59:21 -07:00
Akihiko Odaki 8691cd12f7 Add missing maxFreeSockets property of Agent class in node (#27014) 2018-07-05 12:51:29 -07:00
Jeff Jacobson 8d0b168575 [node] Added missing COPYFILE_* constants (#27036)
fixes #26534
2018-07-05 12:50:34 -07:00
Gerhard Stöbich 53ab99ab97 [mongoose] Revert "Add useNewUrlParser parameter to mongoose" as the same was added already in #27050 (#27081) 2018-07-05 12:10:12 -07:00
Jason Unger 5db2874431 Add types for react-hammerjs@0.5 (#27079) 2018-07-05 11:54:30 -07:00
Jason Unger 917cb109d0 Add types for react-slider@0.8 (#27035)
* Add types for react-slider@0.8

* Fix export syntax
2018-07-05 11:04:49 -07:00
Gerhard Stöbich a68fbbdb25 [chai] fix test (#27033) 2018-07-05 11:01:33 -07:00
RossGraeber 09cf201fe6 highcharts - Add interface for the wrapping and extension of tooltips. (#26962)
* Add interfaces for the wrapping and extension of tooltips.

* Add testing for wrapping tooltip behavior.
2018-07-05 10:18:36 -07:00
Achim Weimert 84c222d10b googlemaps: adapt to api changes (#26954)
* add missing response status codes

Added response status codes according to:
https://developers.google.com/maps/documentation/javascript/places#place_details_responses

* mark radarSearch as deprecated

https://developers.google.com/maps/documentation/javascript/places#radar_search_requests

* add new find places apis

https://developers.google.com/maps/documentation/javascript/places#find_place_requests
- findPlaceFromPhoneNumber()
- findPlaceFromQuery()

* add new fields parameter for place detail requests

https://developers.google.com/maps/documentation/javascript/places#place_search_fields

* add simple tests
2018-07-05 10:18:16 -07:00
Saulo Tauil b42074d845 Adding more types to intercom-client (#26936) 2018-07-05 10:14:24 -07:00
Jinesh Shah eb868d6677 Fixed headerLeft and headerRight props (#26881)
* Update index.d.ts

Fixed headerLeft and headerRight types

* Update index.d.ts
2018-07-05 10:14:11 -07:00
Atrahasis 96b2b69caa [@types/three]: Fix Object3D#clone. (#27058) 2018-07-05 10:12:41 -07:00
Klaas Cuvelier 98b8fc3a97 Add type definitions for react-notify-toast (#27052)
* Add type definitions for react-notify-toast

* use 4 spaces

* add comments

* Fix issues
2018-07-05 10:09:15 -07:00
Jiayu Liu f83dee6c0e [wepy] modifying wx.request params (#27049)
* [wepy] modifying wx.request params

* updating code owners
2018-07-05 10:07:52 -07:00
Alex Brick 6361591c22 [splunk-bunyan-logger] Adding new type definition (#27041) 2018-07-05 10:05:49 -07:00
bangbang93 6c7e7b5a33 fix mockjs.Random.string() (#27057)
mockjs.Random.string() can be called without arguments.
2018-07-05 10:04:04 -07:00
Mariusz Szczepańczyk 6115750718 Add type definitions for get-folder-size (#27056) 2018-07-05 10:03:55 -07:00
Aayush Kapoor 54698152db Add millisecond package types (#27073)
* Add millisecond package types

* Update definition
2018-07-05 10:03:44 -07:00
Alexander T 9dfbd04087 Wrap events to NativeSyntheticEvent (#27059) 2018-07-05 10:02:32 -07:00
Daniela Yassuda 4ba531eaf9 Upgrade pretty-bytes to v5 (#27076) 2018-07-05 10:02:23 -07:00
Sander de Waal fc2591bc1e Change columns argument in event callback to be an array. (#27075) 2018-07-05 10:00:34 -07:00
Jussi Kinnula 095474d038 Add useNewUrlParser parameter to mongoose (because of deprecation warning) (#27067) 2018-07-05 10:00:22 -07:00