Commit Graph
44128 Commits
Author SHA1 Message Date
Su-Shing Chen 8d87c67236 [@types/when] Fix when.js then() when TResult is a subtype of T (#25110)
* Fix when.js then() when TResult is a subtype of T

Change the order of .then overrides to deprioritize no generics.

* Move the more specific overload to the top
2018-04-24 17:20:45 -07:00
Jason Walton 211a5eb474 [@types/body-parser] Fix so body-parser works with connect/vanilla node.js apps. (#25115) 2018-04-24 17:18:28 -07:00
Mathias Paumgarten 0823873176 Adds types for gl-shader (#25200)
* init gl-shader types

* adds tests

* fixes file name

* adds additional signature

* fixes definitions url
2018-04-24 17:17:17 -07:00
Daniel Sogl 248e3140ec Added type definitions for apicache (#25225)
* Added type definitions for apicache

* Added type definitions for apicache

* Update index.d.ts

* Update index.d.ts

* fix lint

* refactor lint rules

* fix lint

* add test file
2018-04-24 17:15:06 -07:00
Daniel Sogl 8c831011f2 Added type definitions for url-params (#25226)
* Added type definitions for url-params

* add test file

* fix naming

* fix naming
2018-04-24 17:12:55 -07:00
Marc Ghorayeb 517765c944 feat(react-jsonschema-form): generic interfaces for better return types (#25103) 2018-04-24 17:11:08 -07:00
Alan Plum bd16c73705 [tea-merge] Remove attribution (#25223)
* Remove attribution as per @mihhail-lapushkin's wishes

* Update index.d.ts
2018-04-24 17:09:25 -07:00
ryym 1efe02587a [react-redux] Update type definitions for redux@4.0.0 (#25109) 2018-04-24 17:08:19 -07:00
Harm van der Werf 4ed4461b26 Added type definitions for Chai UUID (#25227)
* Added types for Chai UUID

* Fixed the test file

* Removed the message parameter because it's not implemented in the plugin

* Removed an empty namespace as it was unnecessary
2018-04-24 17:06:44 -07:00
Omar Diab 48e4b60094 React intl JSX.Element values (#25074)
* allow formatted message children to be a JSX Element

* tests for JSX.Element children

* lint
2018-04-24 17:03:16 -07:00
Fabio Berta f958ca5669 add proper default export (#25071) 2018-04-24 17:02:02 -07:00
Tanguy Krotoff b273310927 react-native: small improvements (#25057)
* Switch from var to const

* import React instead of /// <reference types="react" />
2018-04-24 17:00:51 -07:00
restimel 63f5ebe451 ace: extend all core component with optionProvider. (#25058)
The methods setOption, setOptions, getOption, and getOptions are available
for all core ace components (editor, session, renderer):
https://github.com/ajaxorg/ace/wiki/Configuring-Ace

In commit 19fc8fa756, it was done only for
editor.
Now a dedicated OptionProvider interface is available and core components
interface extends this new one.
2018-04-24 16:55:20 -07:00
Brendan Kenny c5e4324520 [css-font-loading-module] Add missing FontFace properties (#25045)
Based on full FontFace interface - https://drafts.csswg.org/css-font-loading/#fontface
2018-04-24 16:46:15 -07:00
Mathew Rumsey 593a956550 command-line-usage added (#24787)
* command-line-usage types good default bad

* Type adjustments

export Section, raw optional

* No errors - try remove tslint rule override

* Linting .d.ts works great!

* typings pass all given examples

* Removed type-annotation causing Travis to fail

* Re-added Dvorsky as contributor

Even though the new definitions completely overwrite the old, it was requested that the original author be re-added.

* Fixed a silly, silly mistake - missing comment slashes
2018-04-24 16:42:48 -07:00
Andy cd39e74f6b protractor-helpers: Move 'jasmine' dependency to tests (#25034) 2018-04-24 16:30:51 -07:00
Daphne 93bef66405 Added missing prop 'resize' (#25029) 2018-04-24 16:29:34 -07:00
Periklis Tsirakidis ebad624215 react-lazyload: Update to 2.3.0 (#25030) 2018-04-24 16:29:04 -07:00
Alan Plum 6c26901d8b Add ArangoDB typescript typings (#25087)
* Initial declaration WIP

* Unexplode linter

* Some linting

* More linting

* More linting

This was the last of the low-hanging fruit.

* Use generic string index types

There doesn't seem to be a way to set a "fallback" string index type
so I guess this has to be as generic as necessary.

* Expand stub interfaces

* Get rid of extra declares

These seem to be redundant

* Get rid of extra exports and const enum

This seems to simply work.

* @arangodb/index -> @arangodb

* Escape 'new' attribute to be safe?

* Replace string index types with compositesa

This seems to achieve the behaviour we want:
typeof db.asdfg == ArangoDB.Collection | undefined
typeof db._query == Function

* Both options actually exist

Thanks @Simran-B for clarifying this.

* Remove PlainObject interface

Turns out we actually want `object` as the default type almost
everywhere.

* Bolt down generics

No sense defaulting to object if we don't also enforce extending object.
Also those Documents and Edges might contain literally anything so let's allow that.

* This is probably a hack but at least it works

* Add example stub

* Deduplicate route handler signatures

* Brute force?

This feels wrong. There must be a better way.

* Pass linting

* Possible workaround for globals

* Unnecessary qualifier

* Override NodeJS types

* Add View API

* Slightly more specific graphql types

* Use actual graphql module for types

* Better model manifest/config/deps

* Apparently this doesn't require escaping

* Fix InsertResult

* Functions that always throw should return never?

* Add HttpStatus

* Add Console#logLines

* type to interface

* More example code

* Inline some types

* Inline JwtStorageOptions

* Add sessions middleware example

* Fix aql template string handler
2018-04-24 16:28:27 -07:00
Anderson Friaça ddb98c71c2 Types for JQuery Loading Overlay (#25189) 2018-04-24 16:26:13 -07:00
Max 958ae30039 add types for 'fluxible' and 'fluxible-router' (#25198)
* add types for package 'fluxible'

* add fluxible router types

* fix tests

* fixed annotation
2018-04-24 16:25:01 -07:00
Jakub Řičař 25c7bb7484 [react-popover] Fix for users without allowSyntheticDefaultExports or esModuleInterop (#25216) 2018-04-24 16:22:23 -07:00
Andrew Houghton fd5742930d (new definition) add mjml (mjml.io) types (#25217)
* add mjml (mjml.io) types

* update mjml definition, actually verify linter runs, be more explicit in re: error types

* mjml: int -> number.  why does lint pass w/ 'int'? ah well.

* per @plantain-00 CR
2018-04-24 16:21:17 -07:00
Michael Utz 8231b1a62a added jest-each module declarations (#25224)
* added jest-each module declarations

* test: updated tests for `it.skip` and `it.only`
2018-04-24 16:20:12 -07:00
Ben Cook 49b8178b77 Add type definitions for base64-arraybuffer (#25239)
* Added declarations for 'base64-arraybuffer'

* fix linting and header
2018-04-24 16:19:00 -07:00
Nick Schultz 73619f74ff [Sequelize] Fix types error with UpsertOptions requiring the returning option if they are defined at all (#25240)
* upsert should compile with options that dont include returning

* fix parens

* bump version for bugfix
2018-04-24 16:17:23 -07:00
Arjun Jhawar 959c2e2e35 Bugfix: change url to uri property name under SourceLocation to match API (#25243) 2018-04-24 16:14:38 -07:00
Toby Rahilly 7f5ae12581 react-dnd-touch-backend: Add touchSlop, ignoreContextMenu and scrollAngleRanges options. (#25244)
* Add touchSlop, ignoreContextMenu and scrollAngleRanges to the TouchBackendOptions type.

* v4
2018-04-24 16:14:10 -07:00
melissa-hong efc15ee34b Update react-slick types (#25112)
* Update types for react-slick 0.23.1

* Fix tests

* Update react-slick version in comment

* Don't include patch version
2018-04-24 16:13:52 -07:00
Sam Walsh d29b31e5db @types/material-ui -ToggleProps.label change string to React.ReactNode (#25241)
* @types/material-ui - Change `ToggleProps` `label` type to `React.ReactNode` instead of `string`

* Amend samwalshnz github username to authors list for material-ui
2018-04-24 16:13:27 -07:00
Florent SCHILDKNECHT 6a7b69883e [reactstrap] Correct FormGroups props typings (#25208) 2018-04-24 16:13:13 -07:00
Pat Gaffney 60f80dd6e2 reactstrap: Add Missing Prop Types (#25104)
* reactstrap: Add hideArrow PropType to <Popover/>

* reactstrap: Remove dropup prop in favor of direction for <Dropdown/>

* reactstrap: Update the version to 5.0 in index.d.ts header
2018-04-24 16:12:30 -07:00
Drew Diamantoukos 4a866a79f1 Plotly.js: Added pointcloud type for ScatterData and sizemax property for Marker (#25234)
* Adding pointcloud type for Plotly scatter type and sizemax for Marker

* Added xy field for ScatterData, which is used by pointcloud
2018-04-24 16:11:49 -07:00
Bruno Lemos 06dca56209 [sequelize] Change ReplicationOptions.read type to array (#25207) 2018-04-24 16:11:37 -07:00
Shude Li a39131b390 feat(node-v8): add TextDecoder and TextEncoder for util module (#25221)
* feat(node-v8): add `TextDecoder` and `TextEncoder` for `util` module

* fix(node-v8): change  constructor's first param name

* style(node-v8): styling `TextDecoder`

* refact(node-v8): using class instead interface+var

* test(node-v8): add tests for util.TextDecoder and util.TextEncoder

* fix(node-v8): fix param type of TextDecoder.decode
2018-04-24 16:09:44 -07:00
qqilihq 8797fe7279 Fix validator types (#25212)
Make `require_host` optional,
adjust tests so that they catch options not set as optional
2018-04-24 16:08:55 -07:00
Bradley Ayers de9b889ba9 fix(node-fetch): Headers#get may return null (#25218)
See https://github.com/bitinn/node-fetch/blob/master/src/headers.js#L117
2018-04-24 16:08:18 -07:00
Alexander Kachkaev ba5f8c9912 Add tOptions prop to <Trans /> in react-i18next (#25089) 2018-04-24 16:07:44 -07:00
Mike Fisher b4ea50c7a9 [auth0] Fix ManagementClient.linkUsers signature (#25219) 2018-04-24 16:06:57 -07:00
Simon Schick 2d3747f998 fix(hapi): make all ext options properties optional (#25214) 2018-04-24 16:06:35 -07:00
Martin Donath 02ed6f6b49 Added missing field apiKeyId to API Gateway request context (#25195)
* Added missing field `apiKeyId` to API Gateway request context

`$context.identity.apiKeyId`: The API key ID associated with the key-enabled API request.

See the [AWS documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-mapping-template-reference.html) and search for `apiKeyId`.

* Added missing tests for new apiKeyId field in aws-lambda typings
2018-04-24 16:06:22 -07:00
denisname 0c0e3799ec d3-axis strictNullChecks and strictFunctionTypes (#25066) 2018-04-24 16:06:06 -07:00
Colin Luo 3363dfb20e Update klaw-sync module interface from v1.0 to v2.0.0 + (#25134)
*  commit 'Update `klaw-sync` module interface to v2.0.0 +

[v2.0.0 apis](https://github.com/manidlou/node-klaw-sync/tree/v2.0.0) [v3.0.2 apis](https://github.com/manidlou/node-klaw-sync/tree/v3.0.2)

* Update `klaw-sync` module interface from v1.0 to v2.0.0 +

* Update `klaw-sync` module interface from v1.0 to v2.0.0 +

* Change `klaw-sync` types version from `3.0` to `2.0` and remove ignore parameter.

* Update test case.

* Improve the test case of `options.filter`.

* Add definitions of `klaw-sync`

* Remove `Colin Luo` from `klaw-sync` Difinitions.
2018-04-24 16:05:35 -07:00
denisname af589d355f d3-color: strict null checks and instanceof (#25211)
* Strict null checks

strict null check,
uncomment prototypes,
RGBColor#rgb returns this,
remove `displayable` and `toString` when inherits `Color`

* Contributors
2018-04-24 16:04:48 -07:00
AJ Richardson 64104e9760 Lowdb test fix (#25204)
* lodash: _.get should with numeric keys, too.
Also added some better tests.

* lodash: add one more NumericDictionary overload for _.get

* lodash: more reasonable index for _.get tests

* lodash: object type should not be here (fixes #23293)

* lodash: reduce should always return T if no accumulator (#14758)

* lodash: fix iterator types, remove thisArg from documentation

* lodash: return more specific type for stubTrue and stubFalse

* lowdb: fix failing tests
2018-04-24 16:03:38 -07:00
Andrei Markeev 3d6c3d223b meteor: strong typings for mongo collections selectors and modifiers (#25210)
* meteor: strong typings for mongo collections selectors and modifiers

* meteor: updated dependent packages

* bugfix in $push->$each block, added more tests
2018-04-24 16:02:21 -07:00
Christophe Hurpeau 2f1a4cda5c webpack: Add Configuration.Resolve.cacheWithContext (#25209)
https://webpack.js.org/configuration/resolve/#resolve-cachewithcontext
2018-04-24 16:00:59 -07:00
Saad Quadri d931a0ceb6 [eslint] CLIEngine ignorePattern can be a string or string[] (#25197) 2018-04-24 16:00:18 -07:00
Kevin Perrine dac6c4fc10 [react-sortable-tree] Added props for custom themes (#25179)
* initial addition of theme prop to react-sortable-tree

Signed-off-by: Kevin <kperrine@gmail.com>

* fix TreeRenderer and it's Props.

Signed-off-by: Kevin <kperrine@gmail.com>

* bump version, add theme prop to test

Signed-off-by: Kevin <kperrine@gmail.com>

* added "by" line

Signed-off-by: Kevin <kperrine@gmail.com>
2018-04-24 15:59:33 -07:00
ufolux 53b8794401 Update index.d.ts (#25194) 2018-04-24 15:59:13 -07:00