Commit Graph
64655 Commits
Author SHA1 Message Date
Alex Povar 7456aa4eec [jasmine] Improve various library types (#38412)
* Move Func helper to jasmine namespace

* Move ImplementationCallback to jasmine namespace

* Align tests between different versions

* Fix typings for spyOnAllFunctcions

* Improve typing for function matchers

* Refactor AsymmetricMatcher to handle all cases

* Enhance basic expectation docs and typing

Improve toBe(), toEqual(), toMatch(), toHaveClass()
documentation to avoid confusion around them.

* Enhance any() and anything()

* Add missing typing for non-named spy object

* Specify that jasminewd2 depends on jasmine v2

The jasminewd2 library supports jasmine 2 only,
therefore point typings to the correct reference.

* Add NonTypedSpyObj for complex scenarios

* Improve tool for spy names extraction

* Remove undefined Any property from matchers
2019-09-26 11:58:51 -07:00
Dobes Vandermeer 7564c78a0a react-helmet: remove default export (#38557)
* react-helmet: remove default export

This package does not have a default export.

* react-helmet-async: bump typescript version

This depends on react, which has typescript version 2.8, so this
package has to be updated to match.
2019-09-26 11:49:22 -07:00
Denis Malinochkin c313dca7d1 Update types for glob-parent to version 5.1 (#38521) 2019-09-26 11:43:21 -07:00
Pierre-Antoine Mills 2df4096252 [ramda] accurate types for mergeAll & a fix (#38632)
* fix: added 'deep' to `mergeDeepRight`'s type

* fix: merge types

* fix: missing semicolon

* fix: bad test
2019-09-26 11:26:47 -07:00
michael-whi ca615dcc7a [ECORE] - Marks for interface Resource, parse method. (#38543)
* Added ecore types.

* Little fix.

* Little marks.

* Fixed default export.

* Import/Export marks.

* Fixed default export.

* Marks.

* Test.

* Test.

* -Deleted wrong def eContent in EObject
-Marks in EPackage and EPackageRegistry

* Interface Resource, parse, second parameter 'loader' has to be optional.
2019-09-26 10:52:24 -07:00
Nathan Shively-Sanders c5f1369cbd Silence upcoming error in TS 3.7
The error tries make sure you don't use a truthy check on a function
instead of calling. But the code in the tests is in fact checking for
the presence of the function.
2019-09-26 10:33:05 -07:00
AppLover69 792b469dea Add definitions for ebml@3.0.0 (#38549)
* Add definitions for ebml@3.0.0

* Use imported type
2019-09-26 09:46:00 -07:00
Adam Michel ae22f59acd [react-native] Add Alert.prompt method def. (#38602)
Add `Alert.prompt` method definition from https://github.com/facebook/react-native/blob/89e3f70eab74b722d517c9885ae52c366d0b2315/Libraries/Alert/Alert.js#L103-L173.
2019-09-26 10:51:45 +02:00
Scott Jones dbc9275f37 json-rules-engine (#38613)
* add types for turndown

* use auto-genned tsconfig and tslint

* add dom types

* re-generate module

* fix tests and typescript version

* feature/json-rules-engine: add initial types for json-rules-engine

* feature/json-rules-engine: update test

* also satisfy linter

* feature/json-rules-engine: update types

* chore: pre-commit hook fixes

* chore: fix missing optional param

* feature/json-rules-engine: remove generic type
2019-09-25 16:48:34 -07:00
Gabriel Montes 008bc5cc70 Fix web3.eth.subscribe callback type (#38383)
The callback function of `web3.eth.subscribe` is a `Callback` but the type is not i.e. a `Subscribe<BlockHeader>`, it is a plain `BlockHeader`. This fix applies to all the subscription types.
2019-09-25 16:44:54 -07:00
Phil Cole 5ae53c2f54 [xrm] Add parameter to formContext.ui.refreshRibbon (#38386)
* Add parameter to formContext.ui.refreshRibbon

* Fix whitespace for linting
2019-09-25 16:42:22 -07:00
Mark Dascher 71cbf65749 [@types/react-json-pretty] Add replacer, space, and themeClassName props for v1.7 (#38509)
* [@types/react-json-pretty] Add replacer, space, and themeClassName props for v1.7

* use 4 spaces and single quotes
2019-09-25 16:40:45 -07:00
Guillaume Fraux 1b5c36ed9f Plotly.js: add support for colorscale and numeric colors (#38441) 2019-09-25 16:38:01 -07:00
Evan Shortiss 6b37d23b30 support heatmap flag in google-map-react (#38403)
* support heatmap flag in google-map-react

* add options callback to google-map-react and bump version

* fix linting error

* fix formatting
2019-09-25 16:35:39 -07:00
AndyLnd 17e59cd0f1 fix(markdown-it): TokenRender returns string (#38461) 2019-09-25 16:34:28 -07:00
Matt Scheurich 7823adabc9 Updated types for jest-json-schema@2.1 (#38465)
* updated jest-json-schema types with latest version of Ajv and support for extendAjv in matchersWithOptions

* updated jest-json-schema version in header

* removed patch version from header
2019-09-25 16:31:18 -07:00
Wing Ho 0881aed62f Add TrustedServer type to cesium (#38354) 2019-09-25 16:15:19 -07:00
baiyufei d544b41b87 Create a type definition for npm module hark (#38375)
* Create a type definition for npm module hark

* Update index.d.ts

* Update index.d.ts
2019-09-25 16:12:57 -07:00
German Ivanov 444e10e486 [node-asana] Add support for sections, gid, string ids, nextPage method for collections, support deprecation framework (#38103)
* feat: add support for sections, gid, string ids, nextPage method for collections

* feat: make section memebership nullable

* fet: make tasks completed_at field nullable

* feat: add section findById and events API

* fix: return bluebird types

* feat: add event related types

* feat: add suport for event error messages

* feat: add project attribute to the event section
2019-09-25 16:11:43 -07:00
David Skx d214c694c7 add support for SOFORT payments without SourceOptions (#38297)
* add support for SOFORT payments within SourceOptions

please see https://stripe.com/docs/sources/sofort for details

* add semicolon

* add semicolon
2019-09-25 16:08:34 -07:00
Bert Verhelst 04d87f9e90 Add types for map functions with promise return (#38294)
When no callback is passed, the function should return a promise (since version 3.0.0)
https://github.com/caolan/async/blob/master/CHANGELOG.md#v300
2019-09-25 16:07:01 -07:00
阿林 3889492dec [@types/node] add destroyed property for Readable and Writable (#38237)
* [@types/node] add `destroyed` property for Readable and Writable

1. https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_readable_destroyed
2. https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_writable_destroyed

* [@types/node] add test for readable.destroyed/writable.destroyed

1. Property 'destroyed' is missing in type 'WriteStream' but required in type 'Writable'
2. check `destroyed`

* fixed: replace Readable with ReadableStream
2019-09-25 16:04:49 -07:00
Gheorghe b3f478f123 Add PromptObject Return to Prompt Function (#38245) 2019-09-25 15:53:49 -07:00
Harry Park 80c6d50779 feat(koa): default state + default context (#37901) 2019-09-25 14:51:50 -07:00
Joel Spadin a0d47c0ec4 npm-registry-fetch: Fix fetch.json return type (#38606) 2019-09-25 14:48:45 -07:00
Claus Stilborg 3479b2a1da Prettier index.d.ts, stripe-tests.ts, no more nits (#38558)
Massive changes to the files, but linting works, but tsc des not,
due to the expected error in stripe-tests.ts
I personally value tsc over linting, but that is for a different PR
2019-09-25 14:36:39 -07:00
Misha Kaletsky 308e471106 slonik 19 (#38524)
* chore: tests for slonik 19

* feat: slonik 19
2019-09-25 14:32:34 -07:00
Ifiok Jr 63e8585f24 prosemirror-view: fix decoration inline spec (#38594) 2019-09-25 14:30:44 -07:00
Boris Moore 26dec26792 Add jsrender to notNeededPackages, since the jsrender npm package (#38608)
now bundles its own typescript definition

 # Please enter the commit message for your changes. Lines starting
2019-09-25 14:29:33 -07:00
Pierre-Antoine Mills b2f10d33fe [ramda] improvements & urgent fixes (#38503)
* accurate merge types

* fix: flatten & now works with unlimited nesting

* fix: typo

* update ts-toolbelt

* all arrays can be readonly

* fix broken keys function

* fix: flatten & unnest

* fix: tests

* fix: missing semicolon
2019-09-25 14:24:39 -07:00
Mike Deverell e7dd848801 [ramda] split tests to separate modules: 'join' - 'mean' (#38570)
* move 'join' tests to separate file

* move 'juxt' tests to separate file

* move 'keys' tests to separate file

* move 'keysIn' tests to separate file

* move 'last' tests to separate file

* move 'lastIndexOf' tests to separate file

* move 'length' tests to separate file

* move 'lens' tests to separate file

* move 'lensIndex' tests to separate file

* move 'lensProp' tests to separate file

* move 'lt' tests to separate file

* move 'lte' tests to separate file

* move 'map' tests to separate file

* move 'mapAccum' tests to separate file

* move 'mapAccumRight' tests to separate file

* move 'mapObjIndexed' tests to separate file

* move 'mathMod' tests to separate file

* move 'max' tests to separate file

* move 'maxBy' tests to separate file

* move 'mean' tests to separate file
2019-09-25 14:11:26 -07:00
Christian Murphy f8aff22606 unist-util-is now has native typings (#38577) 2019-09-25 14:09:16 -07:00
Chiciuc Nicușor 129abd98db @types/meteor: Add imports in *.d.ts files so as to remove implicit imports from /globals folder. (#38545)
* Add imports in *.d.ts files so as to remove implicit imports.

* Fix omission of Mongo import in service-configuration.d.ts
2019-09-25 14:04:23 -07:00
Elizabeth Samuel 22ac2d9abd [office-js] [office-js-preview] (Outlook) Update minimum perm for GetSelectedDataAsync (#38552) 2019-09-25 13:55:28 -07:00
Jimmy Jia 85e892a551 fix: Fix QueryRenderer props for Relay v6.x (#38607)
* fix: Fix QueryRenderer props for Relay v6.x

* fix version
2019-09-25 22:50:04 +02:00
Sebastian Silbermann c1dd9cf3e1 feat(testing-library__dom): Add byRole#hidden (#38560)
* feat(testing-library__dom): Add byRole#hidden

* Update version
2019-09-25 13:46:58 -07:00
Rodrigo Pombo fe0910342b [theme-ui] Make styles' properties optional (#38261)
* Make theme-ui styles properties optional

* Add theme-ui styles test
2019-09-25 13:42:15 -07:00
Nathan Shively-Sanders ad9de8655d Update test failure from merge conflict. (#38603)
A test written on 12 Sep was merged on 24 Sep. In between, the Props
definition it used changed so that the new test was an error.

This PR just clones the original Props type and gives it a new name.
2019-09-25 13:33:05 -07:00
Cho, Yongjoon 78d635d39a Fix DebugEngine and add test (#38556)
```
'DebugEngine' only refers to a type, but is being used as a value here.ts(2693)
```

```ts
const debug = process.env.NODE_ENV === "production" ? undefined : new DebugEngine();
```
2019-09-25 13:28:46 -07:00
Benjamin Santalucia 81f974c1a9 Fix ConnectOptions for twilio-video (#38540)
* Fix ConnectOptions

* fix: update connect() interface. Solves #38537

* chore: adjust styles

* tests: add some extra connectOption

* Remove *-ix server

see https://www.twilio.com/docs/video/ip-address-whitelisting#signaling-communication
2019-09-25 13:26:00 -07:00
Guillaume 5e7d86e145 Fixes, improvements and update to rox-react-native (#38586)
* rox-react-native: Minor improvements, update documentation links

* rox-react-native: remove internal, undocumented, removed in next release method

* rox-react-native: Upgrade package version, fix freeze options (they were plain wrong)

* rox-react-native: Fix return type, add readonly attributes

* rox-react-native: adding a few missing items

* rox-react-native: default value of a Flag is optional

* rox-react-native: More extensive tests

* rox-react-native: make fetcher result an enum

* rox-react-native: Add missing AsyncStorage parameter to setup method
2019-09-25 13:24:14 -07:00
Chiciuc Nicușor f0c225fa62 Allow passing HTMLVideoElement to the Image class. (#38590) 2019-09-25 13:22:33 -07:00
Maxime LUCE 5ee9c5b516 Add anyproxy typings (#38599) 2019-09-25 13:11:08 -07:00
Offir Golan 849833834c types for setup-polly-jest (#38600) 2019-09-25 13:03:44 -07:00
Austin Bonander 9d29625c8e google-protobuf: adjust Message.clone[Message]() (#38476)
Returning [the polymorphic `this` type](https://www.typescriptlang.org/docs/handbook/advanced-types.html#polymorphic-this-types) ensures calling `.clone()` or `.cloneMessage()` on a subclass instance doesn't require a redundant cast.
2019-09-25 12:58:19 -07:00
Offir Golan f966375bc7 @pollyjs/node-server types (#38597) 2019-09-25 12:50:29 -07:00
Chiciuc Nicușor 100f71247f [@types/simpl-schema] Add 'oneOf()' method to SimpleSchemaStatic. (#38591)
* Add 'oneOf()' method to SimpleSchemaStatic.

* Fix double StringConstructor request change.
2019-09-25 12:40:17 -07:00
Joel Spadin d84efa6950 license-checker-webpack-plugin: Fix outputWriter type (#38579)
The function is passed an object containing a dependencies array, not the array
itself.
2019-09-25 11:39:47 -07:00
Philip Peitsch 62db23a607 Add types for withPromises variant of cordova-plugin-ble-central (#38584)
* Improve variable naming slightly for clarity

* Add types for withPromises variant of cordova-plugin-ble-central

These were added some time ago in the source repo:
https://github.com/don/cordova-plugin-ble-central/blob/ac55995dc9e9d19f231c13e6bbfb9ba24b076480/www/ble.js#L229
2019-09-25 11:37:59 -07:00
Sergio Regueira fa036bbb48 move preservePath property to root options (#38486) 2019-09-25 11:31:14 -07:00