Commit Graph

47924 Commits

Author SHA1 Message Date
Bryan Forbes
346791e748 Organize Globalize types into modules for individual or module-level use (#27271) 2018-07-15 12:28:06 -07:00
Sebastian Sebald
56da96e652 @types/jest: Add inline snapshot matchers (#27258)
Add the following matchers:

- `toMatchInlineSnapshot`
- `toThrowErrorMatchingInlineSnapshot`
2018-07-15 12:27:35 -07:00
Siegfried Bilstein
b8c4d1deb5 Add Link type to prismic-dom (#27169)
* Add Link type to prismic-dom

* Add link type to default export for prismic-dom
2018-07-15 12:27:19 -07:00
Luke
2b130f9106 Bull: Add 'every' RepeatOptions property (#27227)
* add 'every' repeatoptions property

* fix linting

* version number

* remove patch version from header
2018-07-15 12:27:05 -07:00
pana-cc
81b2d6f869 Change type PendingSuiteFunction with interface (#26970)
* Change type PendingSuiteFunction with interface

This allows the PendingSuiteFunction interface to be augmented with additional overloads.
The feature is used in [mocha-typescript](http://github.com/pana-cc/mocha-typescript).

P. S. Where can I add tests for this? It has been broken 3 or 4 times before. Interface get frequently renamed (e.g. from ISuite to Suite) or simple interfaces get declared with types.

I need to set interfaces:
```
declare namespace Mocha {
    interface SuiteFunction {
    }
    interface TestFunction {
    }
    interface PendingSuiteFunction {
    }
    interface PendingTestFunction {
    }
}
```
To be set in stone so their augmentations don't get broken.

* Add tests, disable callable-types in tslint, add experimentalDecorators
2018-07-15 12:26:43 -07:00
Sam A. Horvath-Hunt
b2753c35be Remove buggy custom DeepReadonly type (#27236) 2018-07-15 12:26:06 -07:00
Martin Hochel
e731338239 fix(enzyme): change generic P,S params typo in shallow/mount (#27255) 2018-07-15 12:23:01 -07:00
Amiram Korach
dcd53299bf Inboxsdk fix destroy event (#27237)
* inboxsdk - fix destroyed event => destroy

* inboxsdk - fix destroyed event => destroy
2018-07-15 12:22:46 -07:00
Caleb Clarke
ee49a4763b react-native - Added nativeConfig to WebViewProps (#27211)
* Added nativeConfig to WebViewProps

* Added test

* Object -> object

* Added remaining nativeConfig properties to test
2018-07-15 12:19:53 -07:00
Marcin Biernat
a9e4738139 [ramda] use keyof in R.keys (#27167) 2018-07-15 12:18:16 -07:00
Ika
37615f1933 fix(prettier): add missing parsers (#27276) 2018-07-15 12:17:55 -07:00
Mike North
2beceb200e [ember-data] Model#eachRelationship fixes (#27278) 2018-07-15 12:17:42 -07:00
joma74
57ab455b32 align devServer definition with #26895 by removing it in v3 also (#27287) 2018-07-15 06:16:23 +01:00
John Reilly
f9a9d0bea8 Expose types for Cleave.js (#27277)
* expose react props

* wrong filename
2018-07-14 09:06:00 +01:00
Ahmed T. Ali
6f655862b5 chore(@types/webpack): remove myself as reviewer (#27275) 2018-07-14 06:57:37 +01:00
Jan Nicklas
e0555a57d8 [tapable] Replace any return values of tapable (#27219) 2018-07-13 23:34:12 +01:00
Grant Timmerman
9f25bcc456 Update Google Apps Script Types (2017-05-12 -> 2018-07-11) (#27235)
This PR updates Google Apps Script types. (2017-05-12 -> 2018-07-11)
This is a generated type definition.
CC: @erickoledadevrel

---

- [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).
```
npm run lint google-apps-script
definitely-typed@0.0.2 lint /Users/timmerman/Documents/github/DefinitelyTyped
dtslint types "google-apps-script"
# No result.
```

If changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://developers.google.com/apps-script/reference/
- [x] Increase the version number in the header if appropriate.
  - The version should be bumped by the publisher.
- [x] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-07-13 15:05:15 -07:00
Ryan Cavanaugh
9cc0de6422 Update CODEOWNERS (#27270) 2018-07-13 14:52:50 -07:00
Oliver Joseph Ash
1ba324e0a9 Lodash: negate: fix for user defined type guard (#27223)
* Lodash: `negate`: add test for user defined type guard

* Lodash: `negate`: fix for user defined type guard

* Add overload for 0 params

* Lodash: `negate`: add overload for predicates with more than 2 params

* Lodash: generate new FP typings

* Lodash: update corresponding wrapper functions

* Lodash: generate new FP typings
2018-07-13 14:20:22 -07:00
Oliver Joseph Ash
c52d1ab8e3 Lodash: pickBy: add overload for user defined type guards (#27220)
* Lodash: `pickBy`: add overload for user defined type guards

* Lodash: generate new FP typings

* Lodash: update corresponding wrapper functions

* Lodash: generate new FP typings
2018-07-13 14:18:14 -07:00
segayuu
6f808b9c09 simple typed test: hexo-fs (#27246) 2018-07-13 14:15:00 -07:00
Omar Diab
1bac5b9a6c Fix onRef typings (ComponentType -> Component), generic for specificity (#27055)
* correct type for withNavigation onRef, add generic to access class methods

* tests for withNavigation class correctness

* tabbing

* remove generic, add explicit type suggestion
2018-07-13 13:08:26 -07:00
Jan Henry Loewe
96d0d38a9f [@types/onoff] Add activeLow option (#27129) 2018-07-13 13:02:41 -07:00
Hari Sivaramakrishnan
9b1c19d214 [url-parse] Export URL definition in url-parse (#27125)
* Export URL in url-parse

* Add to definitions by list
2018-07-13 13:02:09 -07:00
Lucian Buzzo
b2b13c6fb0 react-jsonschema-form: Fix incorrect typings for TitleField and DescriptionField (#27164)
Change-type: patch
2018-07-13 13:01:08 -07:00
Andy
b40bf4d545 react-bootstrap: Set TS version to 2.8 (#27266)
* react-bootstrap: Set TS version to 2.8

* Remove unused dependency
2018-07-13 12:58:52 -07:00
Sorin Sandru
564b0ff631 Add types for winston-mail (#27128)
* Add types for winston-mail

* added winston dependency

Created a package.json file with winston dependency

* Changed dependency in package.json

Changed dependency in package.json to winston  2.3.9 and higher.
2018-07-13 12:47:26 -07:00
Marlon Chatman
877ced9c4b Add Antlr4 Definitions/Types (#27120)
* Add antlr4 definitions/types

* Update the tsconfig.json for the antlr4 types

* Update the tsconfig.json for the antlr4 types. Use files instead of includes.

* Remove antlr4-test.ts to antlr4-tests.ts, for the antlr4 types

* Remove the c-parser.ts, for the antlr4 types. As this is not allowed in the antlr4-test.ts

* Fix antlr4 types test lint failure

* Update the linting and the tslint.json

* Update the tslint.json, for antlr4 types
2018-07-13 12:46:40 -07:00
Jiayu Liu
97b3f510e6 fix travis build by upgrading typescript version of (#27244)
amqp-connection-manager
2018-07-13 08:42:09 -07:00
Steven Zeck
8ba2ecb239 New package: yargs-interactive (#27155)
* Add typings for yargs-interactive

* Use require to import yargs-interactive in test
2018-07-12 11:12:45 -07:00
Karol Majewski
5f9ef82a75 [pluralize] Prevent using the library without having imported it (#27064)
* Do not pollute the global namespace

* Treat the library as an UMD module
2018-07-12 11:12:05 -07:00
小池貴之
c34089973b Typo fix (#27093) 2018-07-12 10:07:17 -07:00
David Khourshid
f86bf736ea Update index.d.ts (#27103)
Type definitions missing for `dissocIn` and `unsetIn`
2018-07-12 10:06:40 -07:00
ZSkycat
ba3048433e [webpack-serve] update to version 2.0.0 (#27173)
* [webpack-serve] create a new subfolder with the v1

* [webpack-serve] update to version 2.0.0

* [webpack-serve] add the correct path mapping for the v1
2018-07-12 10:05:31 -07:00
Jin Shin
7f9d41cfbb @types/react-native-touch-id: Updated the module to version 4.0.2, adding new config option (#27007)
* Updated the module to version 4.0.2

* Updated Contributor name

* Fix header
2018-07-12 10:03:53 -07:00
Edward Sammut Alessi
4a4db6d249 Typings for apollo-upload-client (#27094)
* Typings for apollo-upload-client

* Update package.json

* Triggering build
2018-07-12 10:00:16 -07:00
kenjiru
fb6990cd4d [backbone] Update the options for Collection.fetch (#27123) 2018-07-12 09:54:00 -07:00
Paul Melnikow
928337ff78 recharts: Document presentation attrs in Label (#27092)
* recharts: Document presentation attrs in Label

* Add a test
2018-07-12 09:49:52 -07:00
Sean Genabe
6994703ab6 Add typings for common-prefix (#27195) 2018-07-12 09:47:45 -07:00
Jiayu Liu
bf441f07a9 Add @tinajs/tina (#27191)
- [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).
- [x] The package does not already provide its own types, or cannot have its `.d.ts` files generated via `--declaration`
- [x] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package.
- [x] Create it with `dts-gen --dt`, not by basing it on an existing project.
- [x] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`.
2018-07-12 09:40:09 -07:00
Konstantin Simon Maria Möllers
47af8e9886 [ecma-proposal-math-extensions] Add typings (#27187) 2018-07-12 09:39:05 -07:00
Rogier Schouten
2d845a15d2 add typings for amqp-connection-manager (#27217) 2018-07-12 09:34:45 -07:00
Rui Ferreira
2685ce39f2 TS definitions for keen-tracking (#27225)
* TS definitions for keen-tracking:
 - recordEvent()
 - recordEvents()

* keen-tracking: add optional param requestType to constructor.
2018-07-12 09:31:58 -07:00
Ullrich Schäfer
35835aa275 [react-navigation] Adding support for parameters in NavigationInjectedProps (#27226)
* Adding a failing test for getParam

This demonstrates that typing of `navigation.getParam` works when a parameter type is provided.

This fails with the following error:

```
ERROR: 559:54  expect  TypeScript@next compile error:
Argument of type '"title"' is not assignable to parameter of type '"unknown"'.
```

* Making test pass
2018-07-12 09:30:10 -07:00
WEBER Logan
0db033ec96 fix(serialport): missing includeDelimiter option for delimiter parser (#27222)
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 changing an existing definition:
- [x] Provide a URL to documentation or source code which provides context for the suggested changes: https://node-serialport.github.io/utilities/parser-delimiter_delimiter.js.html
- [ ] 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" }`.
2018-07-12 09:26:49 -07:00
ikokostya
5831bb2199 [got] Body type must be an object in GotJSONOptions (#27168)
* Revert "[got] Allow primitive types in JSON body for POST requests (#27109)"

This reverts commit 03eede6951.

* [got] Add link to issue with json body type

* Improve comment
2018-07-12 09:25:37 -07:00
Benedict Etzel
251bfc8c1a [react-i18next] Update for 7.8.0 (#27186)
* react-i18next: Support ReactNode parents in Trans

* react-i18next: Support defaults-style Trans for 7.8.0
2018-07-12 09:25:00 -07:00
Alejandro Pérez Batanero
532aedc04d Add ignoreUnavailable param to delete indices (#27215) 2018-07-12 09:24:20 -07:00
segayuu
1a07f27101 [@types/Bluebird] Make iterative methods rigid types without type parameters. (#27216)
* Resolve bluebird(Array) method

* upgrade typescript version from bluebird-global

* move testfile
Reason: There are too many type definition files
  depending on jquery and it can not be managed.

* upgrade typescript version from bluebird require packages

* fix lint error: use-default-type-parameter
2018-07-12 09:23:46 -07:00
James Greenaway
e8dcdd9186 Use ComponentType rather than ComponentClass in grid-styled definitions (#27192)
* Use ComponentType rather than ComponentClass

Update grid-styled BoxProps to accept React component classes or stateless functions

* Increment version number

* Fix missed type
2018-07-12 09:22:25 -07:00