Commit Graph
51230 Commits
Author SHA1 Message Date
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
Elizabeth Samuel b9f1bb2d25 office-js: Update project name (#29454) 2018-10-05 11:04:45 -07:00
Alex Ryan 3b4a0749de [React] Add align attribute to Td and Th (#29448)
* Add align attribute to Td and Th

* Make type more specific
2018-10-05 19:00:07 +01:00
Andrew Casey a9d8ace247 Merge pull request #29132 from ChrisGrant/master
[parse] Added fullText function to Parse.Query
2018-10-05 10:11:10 -07:00
Chris Grant 5f62d000ce Added ? to optional properties. 2018-10-05 12:10:16 +01:00
Jeremy Gordon f0c544ed48 Changing arg from vec3 -> vec2 for mat3.translate. (#29400) 2018-10-04 17:19:28 -07:00
Resi Respati b89b571b4f [screeps] Release 2.5.0 (#29432)
* [screeps] Release 2.5.0

* Updated @dmarcuse's GitHub URL

* [screeps] remove leftovers from local env
2018-10-04 14:28:56 -07:00
BradleyHill 222023a742 Add definition for fabric Group.toActiveSelection (#29446) 2018-10-04 14:28:26 -07:00
Yaroslav Admin 8f2d45eafd Added types for Karma 3.0 (#29386)
* Added type definitions for karma 3.0

* Fixed lint errors

* Suppressed error instead of disabling rule completely
2018-10-04 12:06:39 -07:00
denisname c6cfed730f Update type definition (#29287) 2018-10-04 10:56:42 -07:00
sungmin kim 5fa7e99518 typedefinition for Caller (#29406)
* typedefinition for Caller

* edit comment

change comment Definitions information, 
delete useless  comment

* edit comment

* remove patch version
* restore Definitions line
2018-10-04 10:54:05 -07:00
Tyler Singer-Clark 65da46f368 add stepSizd to TickOptions (#29268) 2018-10-04 10:52:52 -07:00
Gregroam 9d4276aff3 Changed the JoinClause's interface for on, andOn and orOn to accept a callback that takes another JoinClause, instead of QueryCallback. This was invalid and prevented deeper nesting join on statements. (#29252) 2018-10-04 10:43:16 -07:00
Konstantin 2debc8b4cc Add typings for react-facebook-login-component (#29402) 2018-10-04 10:41:25 -07:00
karimmarczak 1e7ac42aa3 Changed type for border prop on button and Card. Bool => Number (#29407)
* Changed type for border prop

* Upped the version
2018-10-04 10:40:51 -07:00
afholderman b0d78c1490 Updates to field typing (#29418) 2018-10-04 10:40:20 -07:00
Vishnu Sankar 425f474af4 [@types/passport-auth0] : Updated StrategyOption to include "domain" variable (#29425)
* - Added Auth0 `domain` property on StrategyOption

* - Added required prop : StrategyOption.domain

* - Fixed : typedef-whitespace error

Ref : https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/436867585#L3525

* - Fixed : Added missing comma

https://travis-ci.org/DefinitelyTyped/DefinitelyTyped/builds/436867585#L3528

* - Added contributor info
2018-10-04 10:39:50 -07:00
Moshe Good 8d3d0fab16 Add typings for the existing connect-datadog package (#29439) 2018-10-04 10:38:27 -07:00
Oleg Repin 7f9b4c98a1 [ioredis] fix type of del result (#29440)
* [ioredis] fix type of del result

* [ioredis] fix tests
2018-10-04 10:36:44 -07:00
vladykhn df6f24470e Add null in response if no results are found (#29441) 2018-10-04 10:36:16 -07:00