Commit Graph
64701 Commits
Author SHA1 Message Date
Nathan Shively-Sanders cbf882e586 Merge branch 'master' into update-other-tests-for-3.7 2019-09-27 09:54:50 -07:00
Nathan Shively-Sanders 1a536d5f9a Update tests for Typescript 3.7
Typescript 3.7 includes a flag that will allow people to migrate to the
Class Fields ECMA proposal as currently specified, which is at Stage 3.
When `--useDefineForClassFields` is turned on, Typescript
issues 3 new errors in places where the current Typescript semantics
would cause errors with the Stage 3 spec.

Two of the errors are very rare. The third shows up whenever classes want
to redeclare the type of a property from a superclass, usually when the
base property's type is `any` or `unknown`.

```ts
class ColumnSizerExample extends React.Component<any, any> {
  context: React.ContextType<typeof MyContext>
}
```

Without `--useDefineForClassFields`, this *only* redeclares the type of
`context`. With `--useDefineForClassFields`, it redeclares the type of
`context` **and** initialises it to `undefined`. This is very surprising.

To avoid this, Typescript 3.7 introduces new syntax for exactly this scenario:

```ts
class ColumnSizerExample extends React.Component<any, any> {
  declare context: React.ContextType<typeof MyContext>
}
```

However, Definitely Typed tests cannot use this new syntax because it
only works with Typescript 3.7, which isn't even in beta until next
week. So this PR uses several other workarounds instead:

1. Moving a constructor initialiser to a property declaration initialiser.
2. Using a dummy initialiser:
3. Adding type annotations so the type of the base property can be correctly inferred.
4. Deleting the declaration when it has the same type as the base. In this case it's redundant.
2019-09-27 09:49:43 -07:00
Ward Delabastita 9ae12bafb1 Update type definitions for "react-copy-to-clipboard" (#38565)
* add required property children to Props

* name function arguments for onCopy

* put required props before optional

* make all Options attributes optional and add format

* extend and add tests

* indicate lib version for these types and add contributor
2019-09-27 09:27:31 -07:00
Andrey Los a618db32ef [react-calendar-timeline] Updated types to version 0.24.6 (#38446)
* [react-calendar-timeline] Updated types to version 0.24.6
- Added absent types
- More test cases
- removed old non existent now props

* - few changes after review

* - few changes after review

* - test fix

* - fixes to header

* - fixes to labelFormat typings

* - fixes to labelFormat typings

* - fixes to typings
2019-09-27 09:26:20 -07:00
Vincenzo Chianese a3dba724ab [@types/lodash] returned object from defaults cannot be null/undefiend (#38156)
* returned object from defaults cannot be null/undefiend

* Update object.d.ts

* Update object.d.ts

* not required on any

* Update object.d.ts

* regenerate fp version
2019-09-27 09:23:57 -07:00
Dave Cardwell 07e87b67cc [puppeteer] Update definitions to 1.20.0 (#38489) 2019-09-27 09:22:37 -07:00
Maxim Mazurok f50535eb66 [gapi.client.sheets] Update Google Sheets API with fixes (#37847)
* Update Google Sheets API with fixes

Updated typings for Google Sheets, generated using https://github.com/Maxim-Mazurok/google-api-typings-generator/tree/patch-1

* Update tests for gapi.client.sheets

* Fix bugs

* Added "resource" as a Request body

https://github.com/Maxim-Mazurok/google-api-typings-generator/pull/3

* Added ClearValuesRequest interface

* Disable no-empty-interface for empty interfaces
2019-09-27 09:19:43 -07:00
Arnaud Zheng 877a5c9df4 update typings for react-native-modal-filter-picker (#38356) 2019-09-27 09:17:53 -07:00
Nathan d66a4af930 Add channelgroup type definitions to pubnub types (#38371)
* add type definitions for channelgroup methods to pubnub type definitions

* fix the code formatting after husky configs butchered it

* add tests

* check in auto-formatted code
2019-09-27 09:13:44 -07:00
a-pavlenko dc3cb890bb [serverless] extend plugin types (#38378)
* [serverless] extend plugin types

* [serverless] cover plugin types with tests

* [serverless] fix lint

* [serverless] fix identation
2019-09-27 09:12:22 -07:00
kwdowik 06484d13df Added type definitions for use-combined-reducers (#38647)
* Added type definitions for use-combined-reducers

* fixed errors

* fixed typo

* deleted typescript version declaration

* defined the same typescript version as react
2019-09-27 09:06:40 -07:00
Luís Rodrigues a6bf231f3f [typography-breakpoint-constants] new typings (#38662) 2019-09-27 08:58:12 -07:00
Luís Rodrigues 7b9dc4408e [gray-percentage] new typings (#38661) 2019-09-27 08:56:57 -07:00
Max Boguslavsky a960c0bd92 Unused files webpack plugin fix (#38660)
* fixed export

* fixed tests

* fixed formatting
2019-09-27 08:56:28 -07:00
Luís Rodrigues 13f5293ab6 adds typings for compass-vertical-rhythm (#38659) 2019-09-27 08:54:57 -07:00
Matt Bajorek 020d2e4418 Add type definitions for react-native-privacy-snapshot (#38598)
* Add type definitions for react-native-privacy-snapshot

* Fixed formatting

* Simplified code
2019-09-27 08:53:31 -07:00
Pacharapol Withayasakpunt cc2af583e5 add @types/async-eventemitter (#38203)
* add @types/async-eventemitter

* fix tests for async-eventemitter (npm test)

* fix def for listeners

* extends events/EventEmitter

* add jsdoc

* export as namespace

* formatting

* fix signature
2019-09-27 08:51:59 -07:00
Eric Mulligan 5d5d2ae0c8 Add sauronjs types (#38166)
* Started adding types.

* Missed these changes.

* Adding types.

* Should be good.

* Should be good to go.

* Updated prettier formatting.

* Updated prettier formatting.

* Updated prettier.

* Changed to ReadonlyArray.

* Modified as per review.

* Modified with other recommended changes.
2019-09-27 08:49:06 -07:00
Lydia Kats 278c2a996c [parse] Fix for const enum throwing isolatedModules error (#38472)
* fix for error enum declaration

- moved error enum declaration outside of Parse context
- changed `const enum` to `declare enum`
- added static vars for enum fields to Error class

* added test for errors
2019-09-27 08:45:27 -07:00
Jamie Magee c93e0fceac Remove re2 types (#38609)
* Remove re2 types

Available as part of the re2 package as of version 1.10.2

* Update asOfVersion re2
2019-09-27 08:42:05 -07:00
Max Boguslavsky 97c71bc7cb Added typing for xml-c14n (#38634)
* added xml-c14n typing

* reworked tests; added test run to package.json

* formatting fix

* removed package.json

* added info

* fixed errors

* rewrote typing

* reworked version

* added compile flag

* corrected export

* corrected export

* corrected tsconfig

* set noImplicitAny to false

* set other options to false

* returned back options which were turned off by mistake

* fixed typing according to review comment
2019-09-27 08:40:55 -07:00
Renan Machado 21da200696 [relay-runtime] Split files to better maintenance (#38640)
* add RelayNetworkLogger types

* add export for RelayNetworkLoggerTransaction

Fix changes suggested by TravisCI too

* add export to createRelayNetworkLogger and change type of arg

* move Network loggers to separate files

* add tests to RelayNetworkLogger

* add RelayNetworkTypes

* add RelayObservable

* add RelayNetwork

* add RelayQueryResponseCache

* add RelayRuntimeTypes

* add RelayFeatureFlags

* add RelayDeclarativeMutationConfig

* add applyOptimisticMutation

* add commitMutation

* add commitLocalUpdate

* add isRelayModernEnvironment

* add RelayRecordState

* add RelayStoreTypes

* add RelayRecordSource

* add RelayModernStore

* add RelayModernSelector

* add RelayModernOperationDescriptor

* add createFragmentSpecResolver

* add RelayStoreUtils

* add RelayModernGraphQLTag

* add fetchQuery

* add requestSubscription

* add RelayDefaultHandlerProvider

* add RelayDefaultMissingFieldHandlers

* add RelayModernEnvironment

* add RelayProfiler

* remove index imports

* remove declarations from index

* make imports and exports of index match source

* export RelayConcreteNode

* add MutationTypes and RangeOperations

* change type of graphql arg func

* change RelayDefaultHandlerProvider

* change RelayQueryResponseCache to default export

* change Environment of commitMutation

* Fix ConnectionHandler exports.
2019-09-27 14:53:35 +02:00
Romain Faust f5f1e2100b [react-native] Add resetBeforeIteration to LoopAnimationConfig (#38627)
* fix(react-native): add `resetBeforeIteration` to `LoopAnimationConfig`

* chore(react-native): update contributors list
2019-09-27 10:57:01 +02:00
dadapowell 3b1a72a2ea Add delimiterLazyShow to CleaveOptions (#38349) 2019-09-26 17:14:18 -07:00
Gavin Gregory 793e9f235f extended the OptimizedSvg interface to include path, and info width and height. (#38317) 2019-09-26 17:12:58 -07:00
Takashi Tamura f161e550b4 update workerpool to v5 (#38382)
* update workerpool to v5

* follow tslint

* update function pool doc
2019-09-26 17:03:37 -07:00
Syncfusion-JavaScript 6aad817004 17.3.0.9-beta added (#38497)
* 17.2.0.34 added

* Added non-npm package

* Removed space

* added new line
added ew line

* Changed the word

* 17.2.0.46 added

* Removed blank line and added non-npm entry

* changed Encoding format

* 17.3.0.9-beta added

* added npm packages
added npm packages

* added npm packages

* format changes

* format changed
format changed

* Format changed to ANSI
2019-09-26 16:55:58 -07:00
Mihail Parvanov a17c4bcc20 Update Kendo ui version to 2019.3.917 (#38459) 2019-09-26 16:52:58 -07:00
BRAMILLE Sébastien 498618d8d5 Update mongoose-paginate & mongoose-paginate-v2 populate types (#38303)
* Update mongoose-paginate & mongoose-paginate-v2 populate types

* Add QueryPopulateOptions

* Upgrade typescript to 2.8 as the tslint does not succeed with the 2.3
2019-09-26 16:51:45 -07:00
Oliver Joseph Ash f4cf543466 react-redux: correct connect return type (#38179) 2019-09-26 16:41:43 -07:00
Max Boguslavsky 092ed17330 Unused files webpack plugin (#38636)
* added typing

* corrected formatting

* added semicolon
2019-09-26 16:27:09 -07:00
Max Boguslavsky 13e90c82cf Type for Signalfx package (#38638)
* added signalfx

* fixed test errors

* fixed test errors
2019-09-26 16:19:50 -07:00
Tvrtko Majstorović 8d3e4aacc9 [@types/hdkey] Add declarations for toJSON and fromJSON (ver. 1.1.1) (#38517)
* Add toJSON and fromJSON to HDNode declaration

* Add credentials
2019-09-26 16:10:12 -07:00
Ivan Zverev 99078a21ed Add types for draftjs-to-html (#38588)
* Add types for draftjs-to-html

* Add types for draftjs-to-html: remove excess blank line

* Add types for draftjs-to-html: change function export
2019-09-26 16:09:04 -07:00
Robert Stocks a9c67da719 lodash: fix flattenDeep to correctly handle strings (#38625)
* lodash: fix flattenDeep to correctly handle strings

* fix whitespace
2019-09-26 16:06:08 -07:00
Matthew Peveler 50fab9758a add: type definitions for isstream (#38611)
* add: type definitions for isstream

* address reviewers comments
2019-09-26 16:03:47 -07:00
James Hong 87be2f30cd Adds type support for subset declaration (#38617) 2019-09-26 15:22:12 -07:00
Scott Jones c72edfe745 json-rules-engine: update missing operator string type (#38644)
* 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

* feature/json-rules-engine: fix missing operator string
2019-09-26 15:20:17 -07:00
Joel Spadin 7b9a50b43c libnpmsearch: Fix detailed score type (#38614) 2019-09-26 15:19:48 -07:00
Rickard Dybeck a583053586 Add log to pg.PoolConfig (#38572)
The log attribute on PoolConfig allows you to attach a logger to debug
what's going in inside the pg-pool.
2019-09-26 13:51:09 -07:00
Li Cui dfac3b68e1 RUN-5646 release 45 version for openfin (#38595)
* add v43 folder

* update to v45

* remove a useless file

* update the version to 45

* update baseUrl
2019-09-26 13:48:10 -07:00
Nathan Shively-Sanders 72848f9624 console-ui now uses Readable/WritableStream from node (#38641)
Previously, it used process.Readable/Writeable. But its tests show that the
constructor is meant to take process.stdin, which is a ReadStream. Until
recently, the two types were mistakenly assignable. Now that they are
not, I think the type should be ReadableStream, which is a common
supertype of process.Readable and ReadStream.
2019-09-26 12:32:55 -07:00
Marco Manino ed41e25e73 Typings for individual Decoder factory (#38631)
Decoder can be built standalone (is part of the actual public interface
and part of the performance-test interface described in the README.md of
the project). Moreover, Decoder is an event emitter. The interface has
been update accordingly.
2019-09-26 12:09:06 -07:00
Daniel Kukula 06886907f1 add 'lrgb' to chroma-js InterpolationModes (#38604) 2019-09-26 12:08:03 -07:00
Krisztián Balla 17e6fe2e0f Updated gettext.js type definition (#38605)
* Update index.d.ts

Member "locale" of interface "JsonDataHeader" was renamed to "language".

* Update gettext.js-tests.ts

Updated test according to type definition changes.

* Updated version number to 0.8
2019-09-26 12:06:20 -07:00
Callum Macdonald f8d91d79ea Redis add flushall async (#38542)
* Add ASYNC flushall to redis

* Add ASYNC to flushdb / redis

* Linting fix. Correct type order.

* Copy ASYNC flushall / flushdb to ts3.1 types
2019-09-26 12:00:23 -07:00
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