Commit Graph

51249 Commits

Author SHA1 Message Date
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
Adam Lavin
353934d836 Add styled-react-modal types (#29484) 2018-10-05 14:46:48 -07:00
Clément Taboulot
6524388fde [auth0-js] Add login_hint value in AuthorizeOptions (#29479)
* [auth0-js] Add login_hint value in AuthorizeOptions

* Update Test
2018-10-05 14:45:59 -07:00
Ben
f7a621d90d Create koa-ratelimit definition (#29457)
* Create koa-ratelimit definition

* Update TypeScript version
2018-10-05 12:35:10 -07:00
Michael Zlatkovsky
d3c84938bf Remove not-supported OfficeRuntime.AsyncStorage.clear() method (#29458)
* Remove `clear` method since it's not supported for now

Calling `await OfficeRuntime.AsyncStorage.clear()` will always throw a "NotImplemented" for now.  So remove it.

* Remove "OfficeRuntime.AsyncStorage.clear()" test
2018-10-05 12:32:29 -07:00
Konstantin
f17caa9fa6 Add typings for react-google-login-component (#29467) 2018-10-05 11:30:09 -07:00
Ivan Zub
939bed73a7 Add type definitions for airbnb/react-outside-click-handler (#29471)
* Add type definitions for react-outside-click-handler

* Fix tests and fallback to TS 2.9

DT is not supporting typescript 3 yet, so can't properly use defaultProps
2018-10-05 11:29:26 -07:00
Mattia Larentis
9810b9a717 Add layout prop to react-vertical-timeline-component (#29324)
* Update index.d.ts

* add example for layout prop

* improve type of the layout type
2018-10-05 11:27:13 -07:00
Kyle Roach
d1d7068302 feat(react-native): Add trackColor to SwitchProps (#29477)
Closes #29466
2018-10-05 11:26:49 -07:00
Vaclav Mlejnsky
d5f7360491 Add missing in(), out() & command() method definitions for gm package (#29475)
Definitions for [gm](https://github.com/aheckmann/gm) package are missing 3 methods - `command()`, `in()` and `out()`.
Usage of these methods is described [here](https://github.com/aheckmann/gm#custom-arguments).

Also, this should resolve #24795
2018-10-05 11:09:52 -07:00
Viet Truong
1ab3279c8d hls.js Fix typo for startFragPrefetch config (#29464)
* Fix typo for startFragPrefetch

* Add startFragPrefetch to test
2018-10-05 11:09:19 -07:00
Florian
ed22ab9858 Add spy.named() and stub.named() (#29469) 2018-10-05 11:08:56 -07:00
Simon Schick
9aa321f04b feat(puppeteer): update to 1.9 (#29456) 2018-10-05 11:08:28 -07:00
Charles ⚡
13bb0f2dfd Update document.d.ts (#29465)
Document.getInitialProps() is awaitable.
2018-10-05 11:07:47 -07:00
Dmitry Motovilov
341ff81e33 [ioredis] improve scan() function types (#29451) 2018-10-05 11:06:48 -07:00
Gregor Stamac
d2107afbb9 Add new typings for keycloak-connect and express-ws-routes (#29205)
* [express-ws-routes] add typings

* [keycloak-connect] add typings

* removed empty files

* fixed tslint issues

* fixed tslint config

* [keycloak-connect] add tests

* [express-ws-routes] add tests

* [express-ws-routes] rename tests file

* [keycloak-connect] rename tests file

* [express-ws-routes] fixed lint issues

* [keycloak-connect] fixed lint issues
2018-10-05 11:06:04 -07:00
Elizabeth Samuel
875b67c35e office-runtime: Update project name (#29455) 2018-10-05 11:05:27 -07:00
Elizabeth Samuel
c5775c3036 custom-functions-runtime: Update project name (#29453) 2018-10-05 11:05:03 -07:00