Commit Graph
64749 Commits
Author SHA1 Message Date
breeze9527andRyan Cavanaugh 36c00a1bed New definition for non npm package amap-js-api-overview (#38761) 2019-10-02 13:25:39 -07:00
breeze9527andRyan Cavanaugh b2c017037d New definition for non npm package amap-js-api-scale (#38760) 2019-10-02 13:25:16 -07:00
breeze9527andRyan Cavanaugh bfab99e84d New definition for non npm package amap-js-api-map-type (#38759) 2019-10-02 11:54:27 -07:00
breeze9527andRyan Cavanaugh 21d1ea3691 New definition for non npm package amap-js-api-control-bar (#38757) 2019-10-02 11:54:05 -07:00
breeze9527andRyan Cavanaugh 929c6f19f9 New definition for non npm package amap-js-api-tool-bar (#38756) 2019-10-02 11:53:30 -07:00
Junxiao ShiandRyan Cavanaugh 40b3fa23f6 minimalistic-assert: initial definition (#38765) 2019-10-02 11:52:56 -07:00
Ben GrynhausandRyan Cavanaugh 624778c4fa add types for kue-ui-client (#38764) 2019-10-02 11:51:10 -07:00
Renan MachadoandRyan Cavanaugh 865ab540e9 [relay-test-utils] Create new package (#38767)
* create relay-test-utils package

* add RelayModernMockEnvironment

* add RelayMockPayloadGenerator

* add unwrapContainer
2019-10-02 11:50:14 -07:00
JoshandRyan Cavanaugh 71c47eedaf add type definitions for @ledgerhq/hw-transport-webusb (#38795) 2019-10-02 11:47:08 -07:00
Sascha ZarhuberandRyan Cavanaugh 11c26c1ace [node-openload] add type definitions (#38799)
* feat(node-openload): added base files

* feat(node-openload): added types

* feat(node-upload): added tests, fixed interfaces

* fix(node-openload): fix test errors

* fix(node-openload): fix test errors

* fix(node-openload): fix test errors

* fix(node-openload): fix default export

* fix(node-openload): fixed default export
2019-10-02 11:46:31 -07:00
Alex BukurovandRyan Cavanaugh f12108dd3b [react-offcanvas] Introduce type definitions (#38809) 2019-10-02 11:45:59 -07:00
Damien EngelsandNathan Shively-Sanders aee73c479b Updates the way the trustedTypes policy factory is exposed. (#38812)
Since Chrome is still shipping the API using `TrustedTypes` (capitalized),
we need to keep it exposed.

We expose both `window.trustedTypes` & `window.TrustedTypes` as optionals
since either of them could be undefined.

Also cleans up the formatting & comments.
2019-10-02 09:59:59 -07:00
Weslley Nascimento RochaandBen Lichtman 01fd2924e6 adding types to halogenium package (#38804)
* adding types to halogenium package

* Update index.d.ts

* fix: using class types

* fix: update to no generic type
2019-10-02 09:05:14 -07:00
Ben LichtmanandGitHub 403ac51161 [node]: Add missing stream properties (#38791)
* Add missing stream properties and tests

* Fix downstream issue in readable-stream

* add tests for readable-stream change
2019-10-01 17:31:59 -07:00
Alex BukurovandRyan Cavanaugh 47fc9ee659 [react-scrollbar-size] Introduce type definitions (#38768) 2019-10-01 15:59:28 -07:00
Nathan Shively-SandersandRyan Cavanaugh b899dec969 Improve README on external dependencies (#38784) 2019-10-01 15:51:57 -07:00
SeallyandRyan Cavanaugh 8aa928a778 [check-error] Add type definitions. (#38778) 2019-10-01 15:49:18 -07:00
Paweł MellerandRyan Cavanaugh 4f4381c06b Add new typings for favicons-webpack-plugin@1.0 (#38782) 2019-10-01 15:47:54 -07:00
Methrat0nandBen Lichtman ee1a310306 Add @types for sic-ecies (#38460)
* write sic-ecies types

* use bitcore-lib PrivateKey and PublicKey and add the CBC constructor parameters. Also add readonly before all parameter arrays (they are not modified)

* test corrections, also remove readonly to keep lower ts version
2019-10-01 13:00:33 -07:00
Sean GloverandAndrew Casey 5cdf8f965a Initial commit for Akumina types (see akumina.github.io) (#38155)
* Linted Akumina types

* Initial commit for Akumina types

* Linting-based cleanup

* Final linting changes for initial akumina-core commit

* set strict null checks to false

* undo changes to autogenerated codeowners

* add additional definitions by in the correct place

* remove changes to CODEOWNERS
2019-10-01 10:58:33 -07:00
Nathan Shively-SandersandGitHub 82a345dfc5 3 more fixes for TS 3.7 (#38777)
* 3 more fixes for TS 3.7

lyricist: patch tests until TS fixes Promise.all
react-relay: fix lint
react-sortable-tree: upgrade react-dnd dependency

The change to lyricist is just a workaround for now.

React-sortable-tree's upgrade is the same as other dependents of
react-dnd that I did yesterday.

* More compatible workaround for lyricist
2019-10-01 10:37:32 -07:00
Nathan BieremaandRyan Cavanaugh 643edf5b1c [react-select] Enforce OptionType should be an object (#38691)
* Extend object

* Keep the change

* All the `OptionType`s

* Formatting

* Two space indentation
2019-10-01 09:59:59 -07:00
JojoshuaandRyan Cavanaugh d45ec9519f tabulator-tables 4.4.3 (#38702)
* 4.4.3

* test update

* fix version(patch version not allowed)
2019-10-01 09:48:37 -07:00
Claus StilborgandRyan Cavanaugh 9ce7c58e5b Add requirements to IAccount (#38710) 2019-10-01 09:48:17 -07:00
Ruixue LiaoandRyan Cavanaugh e142547579 Move rich definition to text-stlyle.d.ts (#38733) 2019-10-01 09:47:47 -07:00
James GarbuttandRyan Cavanaugh 3e9be25146 sinon: correct fake timer interfaces (#38741)
Fixes #38564
2019-10-01 09:47:04 -07:00
Chiciuc NicușorandRyan Cavanaugh 116a2f35dd Make the 'bindEnvironment()' function generic. (#38752) 2019-10-01 09:46:21 -07:00
Alex PovarandBen Lichtman 7f3cd68ef3 Fix jasminewd2 compatibility with older jasmine versions (#38737) 2019-10-01 09:37:37 -07:00
Max BoguslavskyandBen Lichtman a77838da88 Added rollup-plugin-visualizer (#38676)
* added rollup-plugin-visualizer

* corrected formatting

* fixed errors found after test run

* fixed error

* fixed error

* fixed errors

* corrected package.json

* corrected package according to review comment; added main author to package
2019-10-01 09:32:17 -07:00
timtrinidadandBen Lichtman 20a5f8e6e2 [serverless] fix hooks and cloudformation.resources definitions (#38315)
* Update serverless types

This fixes a couple of inconsistencies with the type declarations:
* `Plugin.hooks` is a dictionary of functions that return a promise, not a dictionary of promises
* `serverless.service.provider.compiledCloudFormationTemplate.Resources` is an object rather than an array

* make Plugin an interface instead of an abstract class

* add provider.naming

* add plugin constructor typedef as PluginStatic
2019-10-01 09:31:31 -07:00
Hendrik RöhmandBen Lichtman d286affc38 Add missing FormState element to redux-form (#37940)
* Add missing FormState element to redux-form

According to the [example](https://redux-form.com/8.2.2/examples/submitvalidation/) on the redux-form page, it is possible to have a general error field for the whole form. I confirmed this behaviour with redux-form 8.2.6.

* Correct error formState type in redux-form
2019-10-01 09:27:38 -07:00
lexasssandBen Lichtman 05c13bad91 New type definition: vue-ls (#38653)
* vue-ls

* authors corrected

* vue-ls: tsconfig updated

* default removed
2019-10-01 09:13:30 -07:00
Nathan Shively-SandersandGitHub 16ec9170ea Update react-dnd-multi-backend to version 4.0 (#38736)
* Update to version 4.0

* Update backends type+add dependency
2019-10-01 08:22:13 -07:00
Nathan Shively-SandersandGitHub a21d984ca4 Bump xmpp__jid to 1.3 (#38745)
* Bump xmpp__jid to 1.3

* disable npm version check
2019-10-01 07:57:23 -07:00
Nathan Shively-SandersandGitHub 98157baf6c Remove @xmpp/jid from removed packages list (#38743)
It's not actually removed and the source package doesn't ship types.
2019-09-30 16:14:36 -07:00
Hossein SanieiandMichael Crane fc4cbfd72f feat(mongodb): add better return types for insertX functions (#38522) 2019-09-30 15:04:11 -07:00
Nathan Shively-SandersandGitHub 3d9e9bbdb7 Update react-dnd-touch-backend dnd-core dependency (#38734)
* Update react-dnd-touch-backend dnd-core dependency

dnd-core dependency goes from 4.5 to 9.3.1.
9.3.1 is the first version that fixes an incorrect export that is now
detected by Typescript 3.7.

I'm not sure this is the best fix, but I don't see a way to create a new
release of dnd-core@4.x either.

* remove react-dnd-touch-backend
2019-09-30 13:13:34 -07:00
Ifiok JrandMichael Crane 02c840cd68 prosemirror-view: make decorations generic (#38620) 2019-09-30 13:03:57 -07:00
Nathan Shively-SandersandGitHub 3d6e86fd92 Fix incorrect import/export clashes. (#38730)
* Fix incorrect import/export clashes.

A new error in Typescript 3.7 forbids name clashes like this:

```ts
import { X } from 'y'
export interface X { }
```

Previously they were incorrectly allowed. Typescript 3.7 will have a
beta version in the next day or two. In the meantime you can try
typescript@next -- the nightly build -- to see these errors.

* Missed a file!
2019-09-30 12:33:36 -07:00
Nathan Shively-SandersandGitHub 5299d372a2 Update react-dependent tests for TS 3.7 (#38671)
* Update react-dependent tests for TS 3.7

Typescript 3.7 includes a flag that will allow people to migrate to the
currently-specified Class Fields ECMA proposal, which is currently 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 is unfortunately common in
React code because its types don't allow the type of `context` to be
inferred. Instead, components redeclare `context` with an explicit type:

```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 two other workarounds instead:

1. Deleting the declaration when it has the same type as the base,
usually `any`. In this case it's redundant.
2. Using a dummy initialiser:

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

This is unfortunate, since it serves as a bad example to anyone reading
the tests. But I couldn't find any other way that works in all
Typescript configurations. I did, however, update the JSDoc for
`Component.context` with instructions to use the new syntax in TS 3.7
and above.

* Disable selected lint rules

* Add missing semicolon
2019-09-30 09:16:15 -07:00
Shi YanandJohn Reilly ac2c926452 [@types/webpack] Fix chunk type (#38535)
* [@types/webpack] Fix chunk type

* Update index.d.ts

* Fix children in ToJsonOutput
2019-09-28 13:37:50 +01:00
Max BoguslavskyandBen Lichtman 8d6c370de5 Rollup plugin size snapshot (#38677)
* added rollup-plugin-size-snapshot

* fixed formatting

* fixed package.json
2019-09-27 16:52:39 -07:00
Maxim ZasorinandMichael Crane e096c3dbaf Update react-share type definitions (#38658) 2019-09-27 16:39:28 -07:00
hassangitandMichael Crane 0e0c991d90 update Model.bulkCreate records type (#38651)
It should be like `Model.create` record type `TCreationAttributes`
2019-09-27 16:37:56 -07:00
Jacob RaskandMichael Crane 73c11d2cfe Make the useRouteMatch path argument optional to reflect implementation (#38650) 2019-09-27 16:34:45 -07:00
Jesse KatsumataandMichael Crane 90e67888c4 [react-native-vector-icons] fix: Icon style (#38639) 2019-09-27 16:34:08 -07:00
Claus StilborgandMichael Crane 6cc0a96cca Add property setup_intent to CheckoutSession obj (#38652) 2019-09-27 16:33:11 -07:00
Chiciuc NicușorandMichael Crane 3c86e6bcc5 Add 'extend()' method to SimpleSchemaStatic. (#38668) 2019-09-27 16:32:04 -07:00
TypeScript BotandBen Lichtman 62c0950505 Update CODEOWNERS (#38670) 2019-09-27 15:51:06 -07:00
Nathan Shively-SandersandGitHub 0f8f845462 Update tests for Typescript 3.7 (#38672)
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 13:01:36 -07:00