Commit Graph

51266 Commits

Author SHA1 Message Date
Shuhei Tsukamoto
56073ea2ff onClick() and onHover() only receive single argument. (#29392) 2018-10-08 17:44:18 -07:00
Kristijan Sedlak
f66411657c Fix ListingOptions.limit type (#29416) 2018-10-08 14:34:42 -07:00
Josh Duff
c77754a345 Remove deepmerge: no longer needed (#29415) 2018-10-08 14:34:27 -07:00
Michelle Scharlock
0979551474 Added codeowners and updated comments in custom-functions-runtime (#29482)
* added codeowners and updated comments in CF-runtime

* fixing whitespace issues
2018-10-08 14:32:34 -07:00
meyer
49281a8e99 Revert "[react-dom] there is no type named Text" (#29483)
This reverts commit 96205f15ff.
2018-10-08 14:32:04 -07:00
Michael Lumish
57c23e7369 @types/node: Add missing 'verbatim' option in dns.resolve (#29488)
* @types/node: Add missing 'verbatim' option in dns.resolve

* Add dns.lookup verbatim option for Node 8 types
2018-10-08 14:31:03 -07:00
borkaborka
0e24eb45c6 [pg] Added query(QueryArrayConfig, values) overload (#29525)
* Added query(QueryArrayConfig, values) overload

* Update index.d.ts
2018-10-08 14:30:33 -07:00
borkaborka
10aae1842b ClientConfig/PoolConfig.statement_timeout (#29527) 2018-10-08 14:29:50 -07:00
Simon Epskamp
b3769d3ae8 [bezier-js] Make last args to quadraticFromPoints optional (#29544)
* Make last args to quadraticFromPoints optional

Also on cubicFromPoints.

As noted on the docs: https://pomax.github.io/bezierjs/
"The points p1 through p3 are required, all additional arguments are
optional."

* Add updated by
2018-10-08 14:29:14 -07:00
Florian Richter
53fa2492da mongodb: Fixed incomplete types from #29429 (#29546)
* mongodb: Fixed incomplete types (#29429)

* mongodb: Small fixes
2018-10-08 14:28:49 -07:00
Joe Tanner
aef71e1419 Fix typo in SafeAreaViewComponent docs (#29548) 2018-10-08 14:28:04 -07:00
Adrian D. Alvarez
a1e5eba8ee Add shortnameToUnicode function (#29547) 2018-10-08 14:27:02 -07:00
Pirasis Leelatanon
31daeec1d0 [redis] change increase-by-float commands to reply a string (#29541) 2018-10-08 11:49:15 -07:00
Kacper Wiszczuk
fc91b889a2 FIX Update FlatList and SectionList props (#29543) 2018-10-08 11:48:54 -07:00
Leo Cavalcante
797efa7948 Add next-redux-saga types (#29383)
* Add next-redux-saga types

* Add TypeScript version

* Matching TS version of React

* Sort by specific overload

* Fixes after npm run test

* Declare redux dependency

* Statically typed createStore

* For new packages, this file should only "extends": "dtslint/dt.json"

* require(next-redux-saga) is itself a function, not an object with a default property

* Enable ES Module Interop
2018-10-08 11:39:17 -07:00
Jesse Hallett
1899725695 Type definitions for array.prototype.flatmap (#29437)
* Type definitions for array.prototype.flatmap

* array.prototype.flatmap: importing "/auto" extends the Array prototype
2018-10-08 10:36:07 -07:00
Yanis Lukes
aef895f924 types df-visible: A fourth argument to the only function (#29314)
* df-visible: Fourth argument

Newer version of jquery-visible adds a fourth argument to the jQuery extended method.

* df-visible: added fourth argument test
2018-10-08 10:22:26 -07:00
WrathZA
bfa300406a Added definitions required to override getParentElement (#29317) 2018-10-08 10:22:08 -07:00
Kanitkorn Sujautra
29d283ca5c [redux-immutable] Upgrade type definition to support Redux v4 + Immutable v4 (#29334)
* [redux-immutable] Move the current version to v3 subfolder

* [redux-immutable] Copied v3 over to root and update it to v4
2018-10-08 10:21:41 -07:00
Sean Kelley
82307b21d5 [plotly.js] add barmode to Layout (#29342) 2018-10-08 10:20:33 -07:00
William Robertson
470a368da5 Updated @param disableAutoBOM (#29359)
Removed "don't" since it doesn't reflect the official documentation.

see -> https://github.com/eligrey/FileSaver.js/#syntax
2018-10-08 10:20:13 -07:00
Kalley Powell
54685bf955 [is-hotkey] Adds support for multiple hot keys per 0.1.3 (#29422) 2018-10-08 10:14:45 -07:00
neborke
fdc13ea32d Adding processSectionDelay to Hub (#29443)
* Adding processSectionDelay to Hub

* adding test for added parameter
2018-10-08 10:12:21 -07:00
James Ah Yong
71a3debca4 [auth0-lock] add Auth0LockConstructorOptions.allowAutocomplete (#29486)
* add Auth0LockConstructorOptions.allowAutocomplete

* allowPasswordAutocomplete, flashMessage, scrollGlobalMessagesIntoView

* update tests
2018-10-08 10:11:25 -07:00
MrBigDog2U
ba0690aad3 Add resolves this to sinon stub (#29487)
* Add support for resolvesThis() to the SinonStub definition

* Whitespace complaints with lint
2018-10-08 10:09:14 -07:00
Elizabeth Samuel
e605f0b1d1 office-runtime: Update project name (#29491) 2018-10-08 10:08:20 -07:00
Elizabeth Samuel
e329393de3 office-js-update-project-name (#29490) 2018-10-08 10:08:10 -07:00
Jonathan Cardoso Machado
05c905227b allow GraphQLNonNull usage with and without new (#29492)
* allow GraphQLNonNull usage with and without new

* use GraphQLNullableType instead of T on generics of GraphQLNonNull

* fix code-style and add fixes for GraphQLList

4 spaces instead of 2
use `export` instead of `declare`

* add JCMais as definition author
2018-10-08 10:07:51 -07:00
Dmitry Radkovskiy
d6950287e2 web3: fixes for web3.eth.accounts types and methods, added missing methods (#29495)
* web3: removed `publicKey` field from Account

* web3: split sign/signTransaction return values to specific interfaces

* web3: `Account.publicKey` removal regression test

* web3: Account.sign & Account.signTransaction regression tests

* web3: fixed typo in web3.eth.accounts.encrypt and added regression test

* web3: added sign(), signTransaction() and encrypt() methods on `Account`

* web3: make linter happy
2018-10-08 10:07:01 -07:00
ShekharNain
61a1219980 Adding types for passport-azure-ad strategy (#29496)
* Added types for passport azure ad strategy

* New line added at eof in index.d.ts

* Typescript version fixed
2018-10-08 10:06:36 -07:00
Rafael
6f05b6429b Update Multer gridfs storage api to version 3 (#29498)
* Update multer-grdfs-storage definitions to version 3

* Update tests in older version to reflect changes in mongodb3 api
2018-10-08 09:32:34 -07:00
Victor Nogueira
2934e2c7b1 Declare that Role model extends PersistedModel (#29499) 2018-10-08 09:31:47 -07:00
BamButz
f03bd00508 Creating new definitions for "md5-file" (#29505) 2018-10-08 09:31:15 -07:00
Chris Cowan
a9d806263a Fix wu.enumerate() definition error in 'wu' package (#29511)
* Fix wu.enumerate definition bug.

* Fix several methods returning Iterable<...> instead of WuIterable<...>
2018-10-08 09:20:45 -07:00
Yuto Otaguro
8bb6ac0a18 [a11y-dialog] Create new definitions (#29509)
* Create d.ts file for a11y-dialog.

* Finish up implementation for a11y-dialog.

* Construct unit tests for a11y-dialog.

* added missing create functions.

* tslint successfully passes for a11y-dialog

* Split out constructor for best practices

* none of the duplicates were getters / setters
2018-10-08 09:20:05 -07:00
Waseem Dahman
973ba79f9b [jest] Restore SpyInstance interface (#29508)
* Restore SpyInstance interface

* spyOn → SpyInstance
2018-10-08 09:19:17 -07:00
Jake Richards
d8ca2bf318 Adding types for react-window-size (#29507) 2018-10-08 09:17:54 -07:00
qqilihq
d694e947c2 i18next: Fix FormatFunction's value type (#29514)
This is not necessarily a `string`, but can be of `any` type, see:
https://www.i18next.com/translation-function/formatting#basic
2018-10-08 09:10:40 -07:00
Leonard Thieu
acbdedd544 [jquery] Copied event properties are writable. (#29520)
* [jquery] Fix indentation.

* [jquery] Copied event properties are writable.

* [jquery] Formatting. Arrange `Event` members according to origin.
2018-10-08 09:03:01 -07:00
Konstantin
02177ef013 Add typings for react-sticky-box package (#29534) 2018-10-08 08:55:13 -07:00
Thomas Hauglid
d63c0ae3bc SwitchPropsIOS: Added deprecated to thumbTintColor tintColor. (#29537)
SwitchProps: added thumbColor
2018-10-08 08:54:39 -07:00
denisname
8799abfabc d3-array: strict histogram proposition [BREAKING CHANGE] (#25450)
* Use $ExpectError
Rename some variables

* More typing

* More tests

And update d3-contour

* Add deprecated interface

* Update TypeScript minimal version

Oups :/

* d3-chord TS version update

* Linting errors.

* Strict function type for statistics functions

* Strict function type for histogram

* Update d3-contour

* Ts Lint

* Fix accessor type inference

* Arrays for accessors are ArrayLike, in stat fct
2018-10-08 08:35:40 -07:00
Christophe Hurpeau
7a5dfdb5f6 react: remove string | number in type ReactNode (#29516)
Already present in ReactChild > ReactText
2018-10-07 21:46:42 +01:00
pinage404
57c4cca47b Added type definitions for Parcel bundler (#29302)
Using this page https://en.parceljs.org/api.html
2018-10-06 18:18:03 -07:00
Leonard Thieu
1c988f15eb [jquery][sizzle] Add detailed deprecation notices and jQuery.nodeName(), jQuery.expr, and jQuery.easing. (#29503)
* [jquery] Add detailed deprecation notices.

* [jquery] Add `jQuery.nodeName()`.

* [sizzle] Add named interfaces for `Selectors` properties.

* [jquery] Add `jQuery.expr`.

* [jquery] Add `jQuery.easing`.

* [jquery] Improve formatting of `@deprecated` tags.

WebStorm will not add padding between the description and deprecated text. To improve readability, a zero-width space and space is added to deprecated text to force padding.

VS Code will collapse white space causing detailed deprecation notices to start adjacent to the `@deprecated` tag if there is no header. A minimal header is added where necessary.

WebStorm renders line breaks in JSDoc. This may cause unintentional wrapping of text for `@deprecated` tags. To avoid this, line breaks are not used in deprecated text unless it's intended to render a line break there.

This also fixes broken non-http `@link` tags and ensures that they render consistently.
2018-10-06 21:46:18 +01:00
Ilker Güller
4464cbbfe7 react-navigation: Updated withNavigation HOC for suppressing prop requirement (#29208)
## Why?

Typescript requires assign of `navigation` on Component that is created with `withNavigation` HOC. But it comes with that function so it shouldn't require that property.

## Example

```typescript
//
// on the current version, this will give an error.
// with this PR, it will work.
//
interface IHelloProps extends Partial<NavigationInjectedProps> {
  hello: boolean;
}

const HelloBox: SFC<IHelloProps> = ({ navigation, hello }) => (
<View>
<TouchableHighlightCustom onPress={() => navigation.navigate('TEST', { hello })}>
        <Text>Hello</Text>
      </TouchableHighlightCustom>
</View>;
);

export default withNavigation(HelloBox);
```
----

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 adding a new definition:
- [ ] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [ ] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.

If changing an existing definition:
- [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <<url here>>
- [ ] 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" }`.

If removing a declaration:
- [ ] If a package was never on DefinitelyTyped, you don't need to do anything. (If you wrote a package and provided types, you don't need to register it with us.)
- [ ] Delete the package's directory.
- [ ] Add it to `notNeededPackages.json`.
2018-10-05 15:01:34 -07:00
Eric MORAND
dda6e33a6c Add missing Luxon DateTime isInLeapYear getter (#29300) 2018-10-05 14:50:48 -07:00
Per Rovegård
eb7be7c32c grunt - fix grunt.file.expand errors (#29299)
- patterns can be a string or a string array
- options can have a 'cwd' property
2018-10-05 14:50:25 -07:00
Boris Sergeyev
1748f1af66 Updated react-onclickoutside typings (config object, better SFC support) (#29298) 2018-10-05 14:49:39 -07:00
Matt Jaeger
e29dafe1b2 Add types for react-native-scaled-image (#29397)
* Add types for react-native-scaled-image

* Lint fixes
2018-10-05 14:47:20 -07:00