Commit Graph
62262 Commits
Author SHA1 Message Date
Stuart Murray 2eb83051a5 [@types/seamless-immutable] Overrides<T> doesn't change some parameters to Immutable<T> or Immutable<T[]> (#34884)
* Added forEach and changed signatures for existing T[] functions

T becomes Immutable<T>, T[] becomes Immutable<T[]>.

* Corrected whitespace

* More whitespace..

* asMutable, concat, isImmutable signatures

Expanded asMutable to have 3x options with the same signature, allowing
correct typed result when possible.

* Further improvements to concat

* Further addition of Immutable<T> to concat

* Fixing up errors from automated tests around complex Array types

* Travis CI objected to default generic parameters being included - fixed

* Edit as review feedback (TDeep) and corrected array indexer

Changed TDepthBoolean to TDeep as suggested.
Removed mutable indexer and added immutable accessor for ImmutableArray
- note that adding this directly into

* Reverting indexer changes that broke tslinting..

* Reverting indexer changes that broke tslinting...

* Re-adding indexer tweaks

Linter seems happy when not running Indexer through Readonly<T>. While I
was at it, I removed the Readonly<T> from Additions and Overrides given
that they are specified immediately below and are completely readonly..

* Corrected default asMutable, added some tests

Responded to PR feedback about asMutable with no parameters.
Added a few test cases for asMutable to ensure that cases have correct
result type.
Fixed an incorrect previous test.

* Removing 'number' seems necessary as the result type differs

* Updated tests to use $ExpectsError (or not) to check immutability of results

* Update seamless-immutable-tests.ts

Added additional test.
Cleaned up some comments.
2019-05-07 11:11:52 -07:00
Jarom Loveridge 4ef82c966a Remove open and openSet from Connection as they don’t exist anymore. (#34832)
Simplify `ConnectionOptions` due to removal of `open` and `openSet` and to
eliminate duplication of type definitions from `@types/mongodb`.
Fix the return types of `connect`, `openUri`, and `createCollection`
2019-05-07 10:20:15 -07:00
Yeray Cabello 6af00aa070 Added callback to fluxible rehydrate function definition (#35229)
* Added callback to fluxible rehydrate function definition

* Fixed the type of the rehydrate callback property in fluxible

* Made callback function optional in fluxible's rehydrate

* Fixed callback parameter for rehydrate in fluxible
2019-05-07 10:17:39 -07:00
Catalin Onutu f1b2c015b9 [react-native] Add subject as Share option (#35257) 2019-05-07 15:04:12 +02:00
mad-mike 05e9b74160 Upgrade types for @sap/xsenv to version 2.0 (#35232) 2019-05-06 16:22:37 -07:00
Tomas V ac9573ed3b [express-fileupload] missing types (#35226) 2019-05-06 16:05:44 -07:00
Ifiok Jr f41d41d860 feat: update emoji-regex types (#35224) 2019-05-06 15:57:47 -07:00
Matheus Gonçalves da Silva d17c14a550 [WPS] Add changes made to static object. (#35221)
* feat: add changes to static

* fix test

* fix lint error
2019-05-06 15:36:11 -07:00
Nikolay Alexandrov c1a9e2b043 [@types/pino] add ignore to PrettyOptions (#35214) 2019-05-06 14:13:04 -07:00
Nathan Shively-Sanders 85453d806a Update project url (#35243) 2019-05-06 12:39:17 -07:00
Ian Remmel 64dcd8e53f @types/passport-http: fix unused template param #1 (#35083)
* fix(passport-http): use unused template param

It looks like this was rigged up so the appropriate callback definition could be inferred, but one detail got missed.

* test(passport-http): add tests demonstrating passReqToCallback
2019-05-06 11:22:27 -07:00
TypeScript Bot 980af53777 Update CODEOWNERS (#35209) 2019-05-06 08:30:59 -07:00
Donald Pipowitch 3ab10de308 added missing export in react-router-dom (#35225) 2019-05-06 09:56:51 +01:00
Greg c8739bc0d6 [styled-react-modal] update and export ModalProps interface (#35090)
* add missing prop to styled-react-modal

* fix lint errors
2019-05-06 01:20:17 -07:00
Daniel Cassidy a335769441 strip-bom: Delete obsolete type definitions (#35093)
As of 4.0.0 strip-bom distributes its own type definitions.
2019-05-06 01:19:10 -07:00
Pete 7ab31b7594 Update requestPermissions typing (#35092)
Updated to match actual behavior described in RN docs: https://facebook.github.io/react-native/docs/pushnotificationios#requestpermissions
2019-05-06 01:18:32 -07:00
OnionYST 7ddc982bcd add missing param requestBodyOnGet for BodyParserOptions in restify (#35099) 2019-05-06 01:16:41 -07:00
James Pace d337d5f177 Add roles permissions management for Auth0 (#35116) 2019-05-06 01:15:17 -07:00
Josh Miles 259f24682f [plotly.js] Add width to PlotData interface (#35119)
* Add width to PlotData interface

* Add test

Signed-off-by: Pramod Mathai <pmathai@ford.com>

* Fix indentation
2019-05-06 01:14:41 -07:00
Michael 941c6fa41a [ldapjs] created initial stubs for Server, createServer, and related objects/functions (#35125)
* created initial stub for Server and related objects/functions

* correct ts-compile for pre-typescript 3.1 versions
2019-05-06 01:13:36 -07:00
Sang Dang 4d830a5c95 Add options for ensureDir and ensureDirSync (#35117)
* edited

* edit index file

* add more version to fulfill guideline

* add more test for number and without options tests
2019-05-06 01:12:51 -07:00
Benjamin Goering 3930c13b6a fix incorrect return values for aws-serverless-express proxy (#35131)
* fix incorrect return values for aws-serverless-express proxy

proxy() returns a ProxyResult as long as resolutionMode is provided.
https://github.com/awslabs/aws-serverless-express/blob/master/src/index.js#L210

As it is now, the types are misleading and prevent you from awaiting the promise, which is required for it all to work.

* Update aws-serverless-express/index to make unified-signatures pass

https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/526699822#L572
2019-05-06 01:12:40 -07:00
Robert Cooper 83c3c5864b [@types/react-beautiful-dnd]: add resetServerContext (#35220) 2019-05-06 01:10:54 -07:00
Brad Zacher f9aa66f353 [react-dev-utils] Add new arguments to createCompiler arguments (#35215)
* [react-dev-utils] Add new arguments to createCompiler arguments

* lint

* nits
2019-05-06 01:10:35 -07:00
sbilbault d6b1fd3373 add missing properties to @types/pdfMake (#35159)
* add missing properties to @types/pdfMake

* fix

* fix

* fix

* fixes after PR review

* changes types and add currentNode

* missing typing
2019-05-06 01:09:06 -07:00
Alexander Kachkaev 757824ac9a [yandex-maps] Fix module format, fix each() (#35202)
* [yandex-maps] Fix module format

* Add missing each() method for layers

* Make context optional in each()

* Add tests for layers.each()

* object → layer in arg name

* Try fixing CI

* Ignore "export-just-namespace" rule

* export as namespace too

* Account for the fact that getBrightness() is an optional method
2019-05-06 01:07:50 -07:00
Alex Muench 63cb9fea2c [node-telegram-bot-api] Mark several properties on the WebHookOptions interface as optional (#35218)
* Update WebHookOptions interface in response to #35206
* Set `key`, `cert` and `pfx` within the Webhook Options to be optional values, per issue #35206
* Update definition tests to test the new changes

* Resolve lint issues with chagnes to node-telegram-bot-api
2019-05-06 01:05:45 -07:00
Vlad Shcherbin aff3334118 Remove rollup-plugin-delete types (#35217) 2019-05-06 01:05:26 -07:00
Derek Sifford 23bd4f381e [webpack] fix ToJsonOutput.chunks (should be an array) (#35219)
* fix incorrectly typed property

* fix lint issues
2019-05-06 05:29:25 +01:00
Brad Zacher ee9bf2dc97 [react-dev-utils] Update for 9.0.0 (#35207)
* feat: Update react-dev-utils for 9.0.0

* bump header version

* add new files to tsconfig

* lint

* lint again...
2019-05-05 09:38:53 +01:00
Remco Haszing 7fe167420c Add types for inflation (#35199) 2019-05-04 10:04:17 -07:00
Thomas den Hollander 554b193855 [autoprefixer] Specify Stats object and stricter types (#35072)
* Update autoprefixer types

* Don't add browserslist to package.json

* Update typescript version

* Update version header
2019-05-04 10:03:54 -07:00
Dominic Lee a793220943 Add y0 data accessor to datable components (#35188) 2019-05-04 10:00:22 -07:00
James Greenleaf c1942d4bc1 Add logical negation (#35133)
https://docs.mapbox.com/mapbox-gl-js/style-spec/#expressions-!
2019-05-04 00:57:08 -07:00
Peter W 612aad6515 Add elementType to StripeJS change event handler (#35067)
Changing to match Stripe's reference documentation:
> "All events have a payload object that has an elementType property with the type of the Element that emitted the event."

See:
* https://stripe.com/docs/stripe-js/reference#element-on
2019-05-04 00:56:14 -07:00
Alexey Pelykh 6897ae2bf1 [IMP] redux-storage: support v4.1.2 (#35197) 2019-05-04 00:55:12 -07:00
Leonardo Dino 87735e29a5 [x-ray] add instance.abort parameter (#35187)
* [x-ray] add instance.abort parameter

It's actually a required parameter
created in this PR: https://github.com/matthewmueller/x-ray/pull/232
called here: https://github.com/matthewmueller/x-ray/blob/c95ef3e2a9a260155983b5ddb0eac65267f11d49/index.js#L127

see tests:
https://github.com/matthewmueller/x-ray/blob/3c5b9e4a007937c26222c10646087b046b4aab1c/test/xray_spec.js#L338
https://github.com/matthewmueller/x-ray/blob/3c5b9e4a007937c26222c10646087b046b4aab1c/test/xray_spec.js#L304

* [x-ray] remove unnecessary generics

Thanks @weswigham for the review

* [x-ray] replace abort handler any with unknown

thanks @weswigham
2019-05-03 20:32:07 -07:00
Paul Sherman e6c8ba4b9c [react] Remove pshrmn from author list (#35064) 2019-05-03 17:05:41 -07:00
ulrichb 96c1535936 Express http proxy refactorings (#35192)
* Simplify imports

* Isolate test cases

* Improve test case (use the `req` parameter)
2019-05-03 17:03:01 -07:00
Ryan Cavanaugh fe93dd7102 Remove spicy language 🔥 (#35186) 2019-05-03 15:57:44 -07:00
Niek van Bennekom 6a3064cc74 Included definition for proxyErrorHandler in express-http-proxy (#35185) 2019-05-03 14:46:25 -07:00
Simon Schick 18b13d1f4a feat(node): v12 (#34952) 2019-05-03 14:45:32 -07:00
Dan Freeman 14db1e4e2c [ember] all computed property descriptors are also PropertyDecorators (#35114) 2019-05-03 10:05:00 -07:00
Ivan Ha f2daacd88c [slate] support marks in schema (#34289) 2019-05-03 10:01:54 -07:00
Igor Golovin 7742d380cd [meteor-astronomy] typing improved. (#35177)
* [meteor-astronomy] typing improved.

* [meteor-astronomy] fixed mistake with Array
2019-05-03 10:00:52 -07:00
Nathan Shively-Sanders e907365599 Cleanup 2019/05/03 (#35184)
'constructor' is now forbidden as a property name because in 3.4 the
compiler thought it created a property, but in ES2015 it actually
created a constructor. I replaced them with computed properties, which
is still wrong, but backward compatible.

The es2015.promise lib no longer has an iterator type in it. You need to
explicitly reference es2015.iterator
2019-05-03 09:18:43 -07:00
Shannor Trotty 5ef49340ec Added missing value to to types that supported in the documentation (#35172)
See: https://react-slick.neostack.com/docs/example/vertical-mode
2019-05-03 03:04:05 -07:00
Rusty Scrivens 38c7557389 update to Sarif Version 2.1.0-rtm.0 (#35175) 2019-05-03 03:02:59 -07:00
c4605 64ffc666a2 add yeoman-environment (#35174) 2019-05-03 03:01:26 -07:00
Florian Keller 4ec0684aba Add types for chunk (#35164) 2019-05-02 20:04:14 -07:00