Commit Graph
64838 Commits
Author SHA1 Message Date
John G. Gainfort, Jr 611d8e0dcf fixed spelling error (#38951) 2019-10-07 12:18:29 -07:00
David Acosta 8e8fe5bbb5 Updated definitions for dinero.js 1.6 (#38198)
* Updated definitions for dinero.js 1.6

* Use ReadonlArray to improve compatibility.

* Corrected TypeScript version.
2019-10-07 10:51:41 -07:00
Kyle Roach 5649785dfe fix(react-native): Alert.prompt signature (#38918)
The signature of callbackOrButtons allows either:
1. function that returns void
2. array of AlertButton

Instead the current signature does:
1. function that returns void or an array of AlertButton

This fixes the signature to be correct.
2019-10-07 12:22:09 +02:00
Jimmy Jia be146d853a fix: Improve Relay types some more (#38749)
* fix: Improve Relay types some more

* more

* format

* prettier

* fix

* remove pointless overload

* move utility types
2019-10-04 13:42:12 -07:00
TypeScript Bot 281461c130 Update CODEOWNERS (#38882) 2019-10-04 10:11:34 -07:00
ExE Boss b755355a2e fix(cross‑spawn): Add missing spawn function type definitions (#38481)
* fix(cross‑spawn): Add missing `spawn(…)` function type definitions

* refactor: Apply Prettier style
2019-10-04 08:42:00 -07:00
Be 01913b6072 [react-native] Add AccessibilityAction name definition (#38703) 2019-10-04 04:10:43 -07:00
Otto Urpelainen 32b6d5ef2a Fix callback handler inputs to use ViewportProps instead of ViewState
* Fix callback handler inputs

Based on both react-map-gl documentation and trying things out, types
ViewportChangeHandler and ViewStrateChangeHandler both receive a
ViewportProps as input, rather than ViewState as was defined. This
commit fixes that problem.

Fields that were missing include at least 'width' and 'height',
important for working with an auto-resizing map.

* [react-map-gl] ExtraState interface fix

Add missing parameters to ExtraState interface, mark all as optional.
Any or none may be included in a ExtraState object when such is used.

* [react-map-gl] New onViewStateChange inputs

Added new input parameters 'interactionState' and 'oldViewState' to
callbacks 'onViewportChange' and 'onViewStateChange' in
'MapControllerOptions', 'InteractiveMaps' and 'MapContextProps'. There
are also other places where callbacks with similar names are used. But
in those cases, the extra parameters are never used. Because of this,
there are now two different types for callback functions.
2019-10-03 15:49:20 -07:00
Jason Kaczmarsky a889459a88 Default export as device array (#38643) 2019-10-03 15:48:22 -07:00
James Ah Yong 2f2f2cbd44 fix ChartLegendItem properties (#38746) 2019-10-03 15:46:45 -07:00
Hossein Saniei ae898ad434 feat(@types/mongodb): upgrade minimum typescript version to 3 (#38789)
fix
2019-10-03 15:46:28 -07:00
Renan Machado b202e35810 [relay-test-utils] add some fields on RelayMockEnvironment (#38831)
* create relay-test-utils package

* add RelayModernMockEnvironment

* add RelayMockPayloadGenerator

* add unwrapContainer

* add some fields on RelayMockEnvironment

QueryRenderer environment wasnt accepting mock environment type

* remove void return from generate function
2019-10-03 15:39:39 -07:00
Sandor f2c3768da5 Add types for mock-req-res (#38811)
* Add types for mock-req-res

* Remove <reference types directives

* Refactor tests

* Refactor tests

* Fix dtslint errors

* Fix dtslint errors

* Update TypeScript version

* Set TypeScript Version: 2.8
2019-10-03 15:36:38 -07:00
Phil Cole 78ae3b66a5 [xrm] GridControl addOnLoad provides a parameter (#38689)
* GridControl onLoad provides EventContext

* Fix whitespace

* Fix whitespace
2019-10-03 15:30:20 -07:00
Chris Krycho 70b7904bb1 Fix a number of gaps in Ember's types (#38690)
* @ember/polyfills: support `undefined`.

Fixes #38681.

* @ember/utils: support JS objects in `typeOf`.

- Fixes #36809.
- Fixes typed-ember/ember-cli-typescript#799

* @ember/debug: add `deprecate` type and tests

Fixes #38682.
2019-10-03 15:29:51 -07:00
Griffin Yourick 3972699da2 [pino-http, express-pino-logger] Add id to http.IncomingMessage
* Add the generated request identifier to http.IncomingMessage

* Simply export express-pino-logger typings from pino-http
2019-10-03 15:27:42 -07:00
orangain e69cfea13f fix type of event argument in onSubmit
* Fix type of event argument in onSubmit

* Don't use alert in test code
2019-10-03 15:27:05 -07:00
Mike Deverell 25d2c9665b [ramda] split tests to separate modules: 'median' - 'none' (#38615)
* move 'median' tests to separate file

* move 'memoizeWith' tests to separate file

* move 'merge' tests to separate file

* move 'mergeAll' tests to separate file

* move 'mergeDeepLeft' tests to separate file

* move 'mergeDeepRight' tests to separate file

* move 'mergeDeepWith' tests to separate file

* move 'mergeDeepWithKey' tests to separate file

* move 'mergeLeft' tests to separate file

* move 'mergeRight' tests to separate file

* move 'mergeWith' tests to separate file

* move 'mergeWithKey' tests to separate file

* move 'min' tests to separate file

* move 'minBy' tests to separate file

* move 'modulo' tests to separate file

* move 'move' tests to separate file

* move 'multiply' tests to separate file

* move 'nAry' tests to separate file

* move 'negate' tests to separate file

* move 'none' tests to separate file
2019-10-03 15:26:02 -07:00
Aaron Reisman 554555bf57 Update index.d.ts (#38685)
Use same signature for `defaultValue` as `value`
2019-10-03 15:25:01 -07:00
cherryblossom000 ce5a543705 Add types for esquery (#38832)
* add esquery

* test: add test for matches
2019-10-03 14:49:56 -07:00
OSjoerdWie 92810c2e9f [secure-json-parse] add typings. (#38841) 2019-10-03 14:48:13 -07:00
Arturs Vonda 928870246a Improve redux-api-middleware dispatch typings (#38645)
Rehauled the dispatched actions to be typed using Discriminated Union.
The promise results are now correctly typed without needing explicit typing.
2019-10-03 14:40:35 -07:00
WayJam So 09169a799d fix: update type of eureka-js-client config obj (#38585) 2019-10-03 14:34:07 -07:00
Václav Novotný 98cebea79b [onesignal-cordova-plugin] adapt to SDK v 2.6 (#38657)
* [onesignal-cordova-plugin] adapt to SDK v 2.6

* [onesignal-cordova-plugin] fix CI errors

* [onesignal-cordova-plugin] fix formatting issues

* [onesignal-cordova-plugin] fix formatting issues
2019-10-03 14:33:07 -07:00
teramotodaiki 6269c2d818 [requestidlecallback] export "request" instead (#38688)
* [requestidlecallback] export "request" instead

aFarkas's requestIdleCallback polyfill does not export as "requestIdleCallback". It's "request" and "cancel".

https://github.com/aFarkas/requestIdleCallback/blob/18e7d0036d970204e32451e6c4190003161176c0/index.js#L209-L212

* format

* add line break to "Definitions by"

I followed below:
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#edit-an-existing-package
2019-10-03 14:31:56 -07:00
David Sherret 56f0f57acf [ts-nameof] Add nameof.interpolate (#38706)
* ts-nameof: Add nameof.interpolate

* Fix old ts vs new ts difference with string literal types.
2019-10-03 14:31:28 -07:00
Estácio Pereira c3042f83c5 [workbox] Fixed onSync argument type (#38695)
* [workbox] Fixed onSync argument type

* Remove unnecessary type check
2019-10-03 14:28:42 -07:00
Ryo Ota a77d55e8e5 [openpgp] Fix return type of write() (#38697)
* Fix return type of write()

* Fix return type of write() in ts3.2
2019-10-03 14:28:18 -07:00
Joel Shinness 50ec9c6bd8 Addresses error in RootNode definition (#38684) 2019-10-03 14:27:22 -07:00
Mattias Buelens 20f812d176 Deprecate whatwg-streams in favor for DOM types (#38785)
TypeScript 3.2 shipped with built-in type definitions for streams,
so this types package is no longer needed.
2019-10-03 14:26:56 -07:00
Mateus Andrade 1dc4eaa79e [react-native-share] adding filename type definition (#38646)
* chore(filename): adding filename type to rn-share

* chore(test): implementing test to share-single with filename

* feat(definitions-by): adding username to definitions on rn-share
2019-10-03 14:22:54 -07:00
Scott KidderandMike North 4131598ed6 [@types/ember] add ember__template (#38571)
* [@types/ember] add ember__template

* [@types/ember] move -private/handlebars into @ember/template

* [@types/ember] fix SafeString namespacing

Co-Authored-By: Mike North <michael.l.north@gmail.com>
2019-10-03 14:22:21 -07:00
Chad Elliott 45780f09bd correctly support options with Chance#n method (#38711)
* correctly support options with Chance#n method

* correctly support options with Chance#unique method

* correctly support options with Chance#unique method
2019-10-03 13:59:25 -07:00
Paulo Reis ea511606c9 Update type definitions for "faker" (#38742)
* Update faker.js types

* Undo style changes

* Undo style changes

* Fix random number and float types
2019-10-03 13:56:01 -07:00
Yonas Adiel 0e1c6adfe7 add optional includeMargin on qrcode.react definition (#38758)
* add optional includeMargin on qrcode.react definition

* update the version of qrcode.react that is supported

* remove patch version
2019-10-03 13:54:53 -07:00
Richard Ward def7bf7eba stripe: Updated IInvoice to be inline with current stripe documentation
* Updated IInvoice to be inline with current stripe documentation.
Added taxRate namespace

* Re-added removed items and marked them as deprecated and optional.
Fixed linting
2019-10-03 13:48:02 -07:00
Sascha Zarhuber 7de9b6a2c4 [nanoid] added missing declarations for v2.1 (#38806)
* feat(nanoid): added newly introduced file declarations

* feat(nanoid): added new files to tsconfig

* chore(nanoid): bumped version number
2019-10-03 13:45:12 -07:00
Ben Grynhaus 6b2892afc4 improve yesql types (#38763) 2019-10-03 13:39:56 -07:00
Christophe Coevoet 8a3c3e0fe7 Fix types for react-syntax-highligher (#38776)
Types were not properly updated for BC breaks between versions 9 and 10
of the package.
2019-10-03 13:36:07 -07:00
jcapinc d941503b4d Adding obvious types to from the result of FFProbe requests on fluent-ffmpeg (#38649)
* adding a ton of obvious fields to the ffprobe information

* adding tests, fixing issues uncovered by linter

* adding tests, fixing issues uncovered by linter

* I undoing some extra whitespace that the hooks are adding for some reason

* adding newline per linter demand
2019-10-03 13:35:28 -07:00
Dobes Vandermeer e05312e8cb [draft-js] RichTextEditorUtil nullable return types (#38852)
* handleKeyCommand may return null

Even some values of DraftEditorCommand may result in a null return
from handleKeyCommand, for example 'move-selection-to-start-of-block'.

* onBackspace, onDelete, and tryToRemoveBlockStyle may return null

These functions will return `null` if the selection is not collapsed.
2019-10-03 13:29:42 -07:00
Ben Lichtman ccd64ce329 [@types/node] use canonical type for stdin, stdout, stderr (#38826)
* use canonical type for stdin, stdout, stderr

* Add missing namespace

* Remove import types usage
2019-10-03 13:28:09 -07:00
Opher Shachar b095948b8a Align SearchOptions with implementation (#38817)
Align SearchOptions type definition with the implementation of `Client.prototype.search` as of ldapjs v1.0.2.
2019-10-03 13:26:25 -07:00
Olzhas Askar 5dc23d241a feat(testing-library__dom): add fireEvent.reset (#38829) 2019-10-03 13:25:45 -07:00
Renan Machado 46779ab94b [@entria/relay-experimental] Create new package (#38692)
* add @entria/relay-experimental package

* add fetchQuery

* add RelayEnvironmentProvider

* add useRelayEnvironment

* add useQuery

* improve tests for useQuery

* add useFragment

* add useRefetchableFragment

I also remove index imports from relay-runtime. Forget some from #38640

* add usePaginationFragment
2019-10-03 13:25:11 -07:00
Sosuke Suzuki 47b73a9a32 Add resolveConfigFile to Prettier (#38820) 2019-10-03 13:23:18 -07:00
Takuya Uehara 5086c8aec6 [chart.js] Use RadialLinearScale type for scale option (#38170)
* Use RadialLinearScale type for scale option

* Separate RadialLinearScale from LinearScale and added tests
2019-10-03 13:22:53 -07:00
Maurice de Beijer 1c48bda16b Update signature on unstable_scheduleCallback (#38801)
* Update signature on unstable_scheduleCallback

* Update test

* Update scheduler version

* Add optional timeout back to the options

* Added new test case for the optional delay
2019-10-03 13:22:10 -07:00
Marlene Koh b3949e05ae Add optional field 'expand' to SearchQuery, remove duplicate interface (#38845) 2019-10-03 13:21:02 -07:00
Nuno Maduro 578a764987 feat: condition, pattern, and anchoring are now optional within queries (#38844)
* [algoliasearch]: allow optional condition query rules

This is a change in the API, and was requested here https://github.com/algolia/algoliasearch-client-javascript/issues/775

* Update index.d.ts
2019-10-03 13:20:11 -07:00