Commit Graph
60670 Commits
Author SHA1 Message Date
Wesley Wigham 44a802cdba react-redux currently relies on a TS bug (Microsoft/TypeScript#30634) to sucessfully typecheck, this fixes that (#34335) 2019-03-29 15:24:16 -07:00
Rémy Jeancolas 3b0675696b [node-downloader-helper]: Create definitions (#34269) 2019-03-29 12:16:22 -07:00
Saoud Rizwan b9a25743c3 Update blob.d.ts (#34280) 2019-03-29 11:49:32 -07:00
Mehmet Emin Gelmedi 07fb19f5dc Dotenv load deprecated since v7.0.0 (#34287) 2019-03-29 11:43:53 -07:00
Gaëtan Maisse 53b73abbb3 [@storybook/addon-notes] remove typings provided by package directly (#34111) 2019-03-29 11:32:02 -07:00
Jace aa5f059ee2 Add isJWT type def for validator package (#34283)
* adds isJWT type def for validator

* Increases the version number in the header
2019-03-29 11:29:07 -07:00
Nikolay Borzov a804a580d0 [btoa] Accept Buffer (#34271) 2019-03-29 11:25:56 -07:00
Martijn Walraven 59ed5920c9 [graphql] Update for v14.2.0 release (#34261)
* Add Martijn Walraven  to "Definitions by" section of the package header

* Add `validateSDL` function

* Add `toConfig` methods

See https://github.com/graphql/graphql-js/pull/1331

* Add missing typing for `print` function

See https://github.com/graphql/graphql-js/pull/1702

* Rename `MaybePromise` to `PromiseOrValue`

https://github.com/graphql/graphql-js/pull/1798

* Rename `blockStringValue.js` to `blockString.js`, and `blockStringValue` to `dedentBlockStringValue`

See https://github.com/graphql/graphql-js/pull/1751/commits/16afd2efb8ccfee360479791941e0d2d7e8a49ff and https://github.com/graphql/graphql-js/pull/1751/commits/60a2bf8f208ef624f585135a5a99b5cb260efcba

* Update `graphql` version to 14.2

* Add `.prettierrc` and reformat all files

This adds a `.prettierrc` based on the defaults used in https://github.com/DefinitelyTyped/DefinitelyTyped/pull/24552#issue-177715187, and reformats all files (only a few are affected).

* Fix `GraphQLSchema.toConfig()`

* Remove `.prettierrc`
2019-03-29 11:23:53 -07:00
Chris Krycho a819975d58 Ember Data fixes (#34245)
* ember-data: fix bugs and improve type safety.

* ember-data: handle `each(Transformed)?Attribute`.

* ember-data: fix a lint error.
2019-03-29 11:19:02 -07:00
Kevin Hawkinson 7e92d8b69d adding in isSoftNewlineEvent to KeyBindingUtil (#34307) 2019-03-29 11:09:16 -07:00
Florian Dreschner 7a12757040 Add string type to valid data for PubNub decrypt (#34322) 2019-03-29 11:07:29 -07:00
Justin c0bbbd62bf Added type definitions for rasha (#34319)
* Added type definitions for rasha

* Added type definitions for rasha *
2019-03-29 10:59:50 -07:00
nathan amick 79b75ff865 Add type definitions for unique-push-id (#34323) 2019-03-29 10:55:01 -07:00
Nathan Shively-Sanders 693a1a83cd Update for Microsoft/TypeScript#30568 (#34325)
* Update for Microsoft/TypeScript#30568

* Use assignability instead of ExpectType

Since assignability allows subtype relations
2019-03-29 10:37:30 -07:00
Eloy Durán d430889d20 Merge pull request #34315 from Dahaden/master
Changed ReactElement to ReactNode for consistency with flow types
2019-03-29 11:47:01 +01:00
Joel Spadin a2f29ac4a7 Improve license-checker-webpack-plugin definitions (#34282)
* Add types for license-checker-webpack-plugin

* Improve license-checker-webpack-plugin definitions

Make options parameter optional. The module documentation does not state whether
this parameter is or is not intended to be optional, but the code allows for it.

Use Partial<Options> instead of interface with all optional fields.
2019-03-29 00:43:30 -07:00
Gerhard Stöbich cd3f215693 [node] various http2 fixes (#34262)
* [node] various http2 fixes

* remove removeListener() overloads
2019-03-29 00:39:17 -07:00
Sam Alexander 803703a51f Add types for html5-to-pdf (#34288)
* Add types for html5-to-pdf

* Add typescript version

* Update tsconfig

* Fix lint errors

* Fix tests
2019-03-29 00:37:43 -07:00
Sérgio Miguel 518f614f92 Add types for react-native-view-pdf (#34291)
* Add types/test for react-native-view-pdf

* Specify ts version

* Specify strictFunctionTypes
2019-03-29 00:25:22 -07:00
Ryan Cavanaugh 7dc6bb0fa3 Add noAlign option to prettyjson (#34316)
https://github.com/rafeca/prettyjson/blob/7fa29b10985a0b816be649c9c6ddf9fb289c66fe/test/prettyjson_spec.js
2019-03-28 23:59:35 -07:00
Dave Haden d67476886c Changed ReactElement to ReactNode for consistency on flow types 2019-03-29 13:42:07 +11:00
Nathan Shively-Sanders 8201a5f150 Cleanup 20190328 (#34297)
* Update project homepages

* Update project urls and fix protractor-browser-logs dependency

Its dependency on protractor was "latest" -- 6.0 -- which doesn't work because
protractor has a dependency on selenium-webdriver. In the Definitely
Typed repo, selenium-webdriver is treated as a
dependency on @types/selenium-webdriver because d.ts overrides .js.
But selenium-webdriver is at 3.0 while @types/selenium-webdriver is at
4.0, meaning that protractor's imports are broken for people (like DT)
who have @types/selenium-webdriver installed.

There are three ways to fix this:

1. Update @types/selenium-webdriver to 4.0. This is a big task.
2. Fix protractor-browser-log's protractor dependency to 5.4.2, right
before protractor updated to the latest version of selenium-webdriver.
This way the installed version of selenium-webdriver matches the version
of @types/selenium-webdriver in DT.
3. ???? Other tsconfig.json/package.jon wizardry? I don't think this is
a worthwhile path to explore.
2019-03-28 17:44:15 -07:00
Mallen e809175e0c Fix get-value second argument typing not accepting arrays (#34244) 2019-03-28 09:30:43 -07:00
Eloy Durán c9040913ba Merge pull request #34233 from itajaja/patch-1
add context to react relay
2019-03-28 11:15:40 +01:00
Giacomo Tagliabue 0b3af24643 fix 2019-03-27 23:16:32 -04:00
Mrcode ca77853b96 fix: EventType has not 'action (#34176) 2019-03-27 17:36:55 -07:00
Christian 979c300a04 fix(sharp): add missing linear, recomb types (#34218) 2019-03-27 17:34:24 -07:00
Thomas Marrec aadfd1189d [stripe] Add missing billing_reason option (#34251)
* types(stripe): add missing billing_reason option

# add subscription_create to the billing_reason
# https://stripe.com/docs/api/invoices/object#invoice_object-billing_reason

* stripe: add missing subscription_threshold option
2019-03-27 17:29:03 -07:00
Kristian Brünn 158e2d3343 [debug] Override all per-namespace log settings (#34234)
* extend the Debug interface with log(...args) to enable overriding all per-namespace log settings

* extend author list of debug

* extend debug tests

* nits: replace console.error with console.log
2019-03-27 17:27:38 -07:00
katashin e87f5a9181 [twilio-video] Add missing ConnectOptions parameters (#34057)
* Add missing ConnectOptions parameters in twilio-video

* Update definitions by on twilio-video
2019-03-27 17:00:00 -07:00
Damien Engels 551b328862 Update trusted-types definitions to allow for partial policies. (#34239)
Also adds:
 - TrustedTypePolicy#name property
 - TrusteTypePolicyFactory#is(HTML|Script|ScriptURL|URL) functions

Updates the tests to assert types properly as well as add coverage for
all the new additions.

No version update is needed as the api didn't change. This is just a
better description of the actual behavior.
2019-03-27 16:58:18 -07:00
Eugene Zaretskiy 13e6a6482d [seedrandom] State should be serializable, and removing incorrect callbacks (#34151)
* Remove incorrect callbacks, change state type

Seedrandom's state function does not return a function. It returns an object intended to be opaque, which I don't know how to describe in TS. It's serializable (unlike a function), so I made it just be an empty object. It's properties are unpredictable, but always of a similar shape: { [x]: number, [y]: number, [z]: number[] }. x,y, and z vary from implementation, and users are not intended to know what they are. The important thing is that it can be passed back to the state option when making a new instance of seedrandom, and that it be serializable (which the previous implementation was not).

In addition, seedrandom's alternate algorithms do not take a third "callback" argument, so I removed it.

* Adding attribution
2019-03-27 16:55:51 -07:00
dsueltenfuss eb65f2b789 dwt type - additional property (#34224)
* Added missing type

* Updated package header

* Replaced tabs with spaces
2019-03-27 16:17:20 -07:00
Kubo Satnik b36aeafe88 Ink select input update for latest version and ink2 support (#34192)
* Update ink-select-input to support latest version and ink2

* Major version up

* Fix travis errors

* Fix travis errors

* Fixed travis errors 3
2019-03-27 16:15:22 -07:00
yutod e2476bf0eb Allow users to define either converter.read or converter.write (#34231) 2019-03-27 16:10:16 -07:00
Rafael 7631f52e7f activestorage: make delegate constructor argument optional. (#34278) 2019-03-27 16:09:20 -07:00
Douglas Nomizo f7fa09cecb Add prismic-dom types for version 2.1 (#34228)
* Add prismic-dom new asHtml types

* improve indentation
2019-03-27 16:08:26 -07:00
Mark f1be41efc5 better-sqlite3 - Add verbose option (#34225)
* better-sqlite3 - add verbose option

* Revert TS version
2019-03-27 16:07:14 -07:00
Norimasa Hayashida f8005551fb [workbox-webpack-plugin] Capitalize the first letter of the strings for ChacheStrategy (#34092)
* Capitalize the first letter of the strings for ChacheStrategy

* move the original code to v3 directoy
2019-03-27 16:06:33 -07:00
Rusty Scrivens 42852369c9 Update to latest sarif version 2.0.0-csd.2.beta-2019-02-20 (#34247) 2019-03-27 16:04:37 -07:00
Nikolaj Kappler b32bd87fcf [Tern] export constructor option interfaces (#34256)
tern plugins may add custom constructor options.
to properly extend these interfaces they need to be exported.

workstream:
2019-03-27 16:03:36 -07:00
Giacomo Tagliabue b339c333c4 add tests 2019-03-27 18:03:11 -04:00
breeze9527 95c83ee6f1 [amap-js-api] Add new features of amap-js-api@1.4.13 (#34266)
* Added type definition for non-npm package amap-js-api-place-search

* [amap-js-api] Add new features of amap-js-api@1.4.13

* [amap-js-api] Update test of Text
2019-03-27 13:19:12 -07:00
BradleyHill 9f7e6cb560 fabric - add more missing props to IEvent.transform (Transform should really be a strongly typed object) (#34272) 2019-03-27 13:18:35 -07:00
Eloy Durán 226cbdc3fa Merge pull request #34195 from franzmoro/master
added CheckBox to react-native
2019-03-27 21:03:21 +01:00
Troy McKinnon bd3a42fcae Add nodejs-license-file (#34242) 2019-03-27 10:20:54 -07:00
서상희 b2f87aa2bb Adding types for Naver Whale Extension (#34250)
* add new package: naver-whale

* change ts version

* add relation to chrome

* add whale.topSites.delete
2019-03-27 10:17:30 -07:00
franzmoro 344341e0cc reverted to version 0.57 2019-03-27 16:53:11 +00:00
briwa dd162faacc Remove GA beacon since it won't work (#34110) 2019-03-27 09:33:50 -07:00
Cyle Ven Dawson 7a852030c2 [@types/react] Add SVGFEDropShadowElement and feDropShadow (#34264) 2019-03-27 09:07:43 -07:00