Commit Graph
62199 Commits
Author SHA1 Message Date
Andres Rosero Velasquez ca20ec7cf9 Types for the 'mixed.notType' property from the Yup library. (#35004)
* Types for the mixed.notType function.

* move notType only to 'LocaleObject'

* fix delete 'label' property

* fix to 'strict-export-declare-modifiers' rule

* added test from MixedSchema

* export interfaces FormatErrorParams and LocaleValue
2019-05-02 10:33:58 -07:00
theweirdone 375444d5bf Added date prompts type (#35147) 2019-05-02 10:31:44 -07:00
Romain Faust c267e49944 [@types/expo] Fix Segment analytics type definitions (#35113)
* fix(expo): mark `initialize` parameter property as optional

* Also extracts the parameter's type to an interface for clarity.

* style(expo): move the methods that are related close to each others

* refactor(expo): simplify the `alias` signature

* fix(expo): fix invalid signature of `getEnabledAsync` and `setEnabledAsync`

* docs(expo): update the contributors list
2019-05-02 10:31:08 -07:00
Simon Garner 8eef7a8374 [aws-lambda] Keys should be optional inside CloudFrontHeaders (#35121)
* [aws-lambda] Keys should be optional inside CloudFrontHeaders

According to the AWS documentation, it is optional to specify a `key` for each header value, but the type declaration is currently requiring this to be specified unnecessarily.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html#lambda-event-structure-response

> - `key` (optional) is the case-sensitive name of the header as it appears in an HTTP request; for example, `accept` or `host`.
> - If you do not include the header key portion of the key-value pair, Lambda@Edge will automatically insert a header key using the header name that you provide. Regardless of how you've formatted the header name, the header key that is inserted automatically will be formatted with initial capitalization for each part, separated by hyphens (-).
>
>   For example, you can add a header like the following, without a header key: `'content-type': [{ value: 'text/html;charset=UTF-8' }]`. In this example, Lambda@Edge creates the following header key: `Content-Type`.

By making this property optional, one is able to write:

```ts
import { CloudFrontHeaders } from 'aws-lambda';

const headers: CloudFrontHeaders = {
  'content-type': [{ value: 'text/plain '}],
};
```

... instead of having to repeat the header name like:

```ts
import { CloudFrontHeaders } from 'aws-lambda';

const headers: CloudFrontHeaders = {
  'content-type': [{ key: 'content-type', value: 'text/plain '}],
};
```

* Update test

Setting a header without specifying the key should not raise a TypeScript compiler error.

* Revert "Update test"

This reverts commit 088653e362e6f0a152f54e9b5694bb778b072354.

* Add test for AWSLambda.CloudFrontHeaders with and without explicit keys
2019-05-02 10:29:11 -07:00
Simon Oulevay c04cbed8b0 [duplexer2] Support regular stream.Duplex options (#35122)
As documented in https://www.npmjs.com/package/duplexer2#duplexer2-1,
options should not only be the duplexer2-specific `bubbleErrors` option,
but also regular stream.Duplex options.
2019-05-02 10:28:25 -07:00
Brendon Sled 60e09cf45a [@types/pusher-js] 4.3.0 - introduce new forceTLS & deprecate encrypted (#35140)
* 4.2.2

https://github.com/pusher/pusher-js/blob/v4.2.2/src/core/options.ts

* Update pusher-js-tests.ts
2019-05-02 10:27:50 -07:00
beeme1mr 31b10d6907 Fixed invalid date time types (#35150)
Changed date time period and date period to be strings.
2019-05-02 10:26:16 -07:00
Pedro Mutter 7b5f8da253 Types definitions to simplecrawler module (#34997)
* simplecrawler modules type definition

* required fixes in export
2019-05-01 17:25:46 -07:00
Rémy Oudemans a807e4e416 Add express-async-wrap (#35030)
* adds types for express-async-wrap

* Adds express-async-wrap properly

* Adds typescript version to express-async-wrap

* removes unnecessary generics

* removes unnecessary comment

* fix: now uses export default
2019-05-01 17:21:57 -07:00
Mikhail Davydov 1e697cb6e6 Introduce type definitions for jest-expect-message (#34890)
* Introduce type definitions for jest-expect-message

* Fix review comment (remove declare global)
2019-05-01 16:56:39 -07:00
Søren Englund 93b2b363a1 updated @types/react-image-crop to match the newest version of react-image-crop (#34796)
* updated types to match the newest version of react-image-crop

updated tests

added missing semicolon

reverted minimum ts version

* Made crop optional, and renamed resolveCropAndTriggerChange to resolveCrop
2019-05-01 16:26:10 -07:00
Frank Feinbube 498aaaf3cc fundamental-react 0.5.1 (#35034)
* type definition for fundamental-react

* removing my co-author to make definitelytyped-header-parser happy

* fixing issues to make travis happy :)

* onClick index is mandatory now

* similar folder structure

* making sure, all files are used

* removed an import that is not provided by fundamental-react

* trying to convince travis, that all files are necessary

* fixed a typo

* included index files in tsconfig.json

* fixed formatting
2019-05-01 16:23:47 -07:00
Bjørnar Snoksrud d180929701 [secure-random-password]: add types (#35016)
* [secure-random-password]: add types

* Update types/secure-random-password/index.d.ts

Fix type of RandomPasswordOptions::characters

Co-Authored-By: bjornars <bjornar@snoksrud.no>
2019-05-01 16:09:43 -07:00
I Komang Suryadana 7e8b7a0a94 [vue-tel-input] Add definitions for vue-tel-input (#35026)
* Saturday, 27 April 2019.

1. Add declaration for vue-tel-input package.

* Saturday, 27 April 2019.

1. Revision data interface.
2. Revision methods interface.
2019-05-01 16:07:34 -07:00
Claas Ahlrichs 63477193da 🐣🐇🐣 new package: kind-of 🎅 (#34879)
* npx dts-gen -m kind-of --dt

* drafted types for kind-of

* reordered overloads

* added more overloads

* fixed linting issues

* npx prettier --write .\types\kind-of\**

* updated teste cases

* clarified edge-cases

* work around banned types
2019-05-01 16:00:02 -07:00
Deyan Kamburov 4d5fbe2383 [ignite-ui] Update Ignite UI typing to 19.1 release version (#34799) 2019-05-01 10:40:08 -07:00
Kamil Lewandowski 8d09d9ca61 Update index.d.ts (#34768)
Added types exports
2019-05-01 10:39:02 -07:00
Trung Dang b497be0de0 fix: update definition to match wtih jest-when@2.4.1 (#34755) 2019-05-01 10:38:17 -07:00
Florian Keller bea39a0360 Add types for djv (#35136) 2019-05-01 10:37:09 -07:00
Florian Keller e6f841f2f9 Add types for squirrelly (#35138) 2019-05-01 10:34:38 -07:00
PikachuEXE 22d3e079ba Add definition for dropzone option transformFile (#35096) 2019-05-01 10:33:14 -07:00
Alex Jerabek 19ff722929 Chart description changes (#35142) 2019-05-01 10:32:33 -07:00
潇煜 5c808c6908 fix: getStoragetSync return value is incorrect. (#35007)
* fix: getStoragetSync return value is incorrect.

* fix: The type of return value type of Storage is incorrect
2019-05-01 03:22:14 -07:00
Noah Loomans 2281e62b61 BREAKING CHANGE: http-link-header: get, rel, and set return an array (#35126) 2019-05-01 03:19:49 -07:00
chennn1990 2f22f87d70 jira-client -add getIssueWatchers method (#35100)
* add getIssueWatchers method

* Update index.d.ts
2019-05-01 02:24:56 -07:00
Gokul 4924fe2bb0 [Gokul] adds getters and setter for MaxNetworkRetries (#35008) 2019-05-01 02:24:01 -07:00
James Greenleaf afe50b9b17 Define explicit EaseToOptions (#34996) 2019-04-30 22:13:18 -07:00
Resi Respati 31294de36c [@types/next-server] add next/amp support (#35132) 2019-04-30 22:12:21 -07:00
Eugene Fedorenko 220663aae1 Updated react-mentions to support v3.0 (#35118)
* Upgraded types for v3.0.0

* Updated tests

* Version shouldn’t contain a patch version
2019-04-30 22:05:04 -07:00
Alex Jerabek 24dea821f5 [office-js, office-js-preview] Updating with 1.9 Requirement Set Preview to GA transition (#34919)
* Updating with 1.9 Requirement Set Preview to GA transition

* Adding version numbers
2019-04-30 22:04:33 -07:00
Pedro Duarte 30fe579397 Improve styled-system (#35078) 2019-04-30 21:58:04 -07:00
Devid Farinelli 5fd22abff1 [yeoman-generator] add async and env.adapter (#35115)
* [yeoman-generator] add async and env.adapter

* [yeoman-generator] fix imports
2019-04-30 21:44:16 -07:00
ANDERSON DE FARIA SILVA 3fa1a06771 [mui-datatables] (#35123)
typo in the method isRowSelectable
2019-04-30 21:43:49 -07:00
kan_a_17 f41b3b4ac0 Mongodb: Fix typos: Cursor#max and Cursor#min (#35120)
* Fix typos: Cursor#max and Cursor#min

Referring to the documentation I updated types. See [Cursor#min](http://mongodb.github.io/node-mongodb-native/3.1/api/Cursor.html#min) and [Cursor#max](http://mongodb.github.io/node-mongodb-native/3.1/api/Cursor.html#max)

* mongodb: fix types
2019-04-30 21:43:15 -07:00
Dominic Lee 7e47948742 Add categories props variations and horizontal props (#35085) 2019-04-30 21:41:02 -07:00
Haseeb Majid 0abde3e92b Added convert-string (#35047)
* Updated react-native-dotenv

Updated react-native-dotenv

* Fixed errors

fixed linting error

* Added Convert String

Added type definitions for convert string

* Fixed Errors

Fixed linting errors.

* Fixed bugs

Fixed bugs with incorrect exports.

* Fixed test error

Fixed error thrown my azure devops.

* Updated after code review

Updated tsconfig to change noImplicitAny to false.

* Updated tsconfig

Updated tsconfig.

* Added Changess

* Removed changes to react-native-dotenv

Removed changes from dot-env.

* react-native-dotenv

This library should not be updated, this is
on the wrong branch.
2019-04-30 21:38:47 -07:00
Robert Pethick af02c4bcb1 Add method option for mocking getState method (#34988)
As in the docs to the main JS library you can either supply state to the MockStoreCreator or you can pass a method in which is given the list of currently dispatched actions
2019-04-30 10:17:48 -07:00
Matevž Poljanc db485fd27b [expo] Add BackgroundFetch and fix bug with Location.startLocationUpdatesAsync (#34987)
* Add BackgorundFetch and fix function name in Location namespace

* Add missing options to Location.startLocationUpdatesAsync function
2019-04-30 10:16:24 -07:00
Jirka Svoboda 08d42b9d98 [twobin/react-lazyload] new scrollContainer prop (#34976)
* [twobin/react-lazyload] added `scrollContainer`

Added new prop type according to source lib v2.5 docs:

https://github.com/twobin/react-lazyload#scrollcontainer

* Added own signature
2019-04-30 10:14:51 -07:00
杨博 (Yang Bo) d4f4ecf6a8 Fix the signature of setDefaultEdgeLabel (#34977)
According to https://github.com/dagrejs/graphlib/blob/f65cf4301dbad3c53f883541f8484ec4b08e6882/lib/graph.js#L412
2019-04-30 10:13:53 -07:00
Andrew Crites e7cd8572db [@types/parse-color] adding types for the parse-color function (#35080) 2019-04-30 10:11:47 -07:00
杨博 (Yang Bo) 08525d6073 The parameter for children should be optional (#35098) 2019-04-30 10:10:54 -07:00
Daniil Dotsev 5c6c1028ab Update prosemirror-tables typings to 0.7.11 (#35101) 2019-04-30 10:09:44 -07:00
Julian Hundeloh e13966146b fix(bull): expose Redis clients (#35103)
* fix(bull): expose Redis clients

* test: add test

* fix: lint
2019-04-30 10:09:07 -07:00
Martin Lehmann 6234f7f72e React native autocomplete input/add v4 flatlist props (#35102)
* fix(react-native-autocomplete-input): add flatListProps introduced in v4

* fix(react-native-autocomplete-input): add keyExtractor prop introduced in v4

* chore(react-native-autocomplete-input): remove unused imports in example
2019-04-30 10:08:14 -07:00
Vladislav Polyakov b36fa43748 Add rxjs "Observable" support (#34865)
* Add sign

* Update version number

* fix: edit file header

* Add necessary imports

* Add 'private' field

* Set typescript version to 2.8

* FIx spelling errors
2019-04-30 10:07:30 -07:00
Ferdy Budhidharma 8bdfc2f285 [react-transition-group] add JSDoc usage comments for individual props (#35031)
* add JSDoc comments for props

* add types

* Update TransitionGroup.d.ts

* Update Transition.d.ts

* Update Transition.d.ts
2019-04-30 09:37:58 -07:00
Daniel Cassidy 04b0dd9394 trim-newlines: Delete obsolete type definitions (#35094)
As of 3.0.0 trim-newlines distributes its own type definitions.
2019-04-30 09:36:20 -07:00
Nathan Shively-Sanders 643a6001f3 Update project urls (#35110)
* Update project urls

stompjs is also broken on CI but doesn't repro on my laptop.

* Update stompjs tests

New error from Microsoft/TypeScript#30568 is correct.
2019-04-30 09:00:07 -07:00
Adam Keating 39b4723424 Adds missing export getInputRangeFromIndexes (#35088) 2019-04-29 17:45:31 -07:00