Commit Graph

47924 Commits

Author SHA1 Message Date
btxtiger
2bb93e2cc3 [cookie-session] Make props optional for usability with sharedSession (#27288) (#27304) 2018-07-23 10:29:03 -07:00
Federico Bond
dc3934f82a bitcore-lib: Improve and expand type definitions (#27301) 2018-07-23 10:28:13 -07:00
Emilio Martinez
f906f51c0e fix(html-webpack-plugin): add complete set of current options (#27289) 2018-07-23 10:27:46 -07:00
Jorge Gonzalez
67abbade54 Add types for pkg-conf@2.1 (#27284)
* Add types for pkg-conf@2.1

* Refine for tests

* Remove fixture

* Update pkg-conf-tests.ts

* Fix test

* Update pkg-conf-tests.ts
2018-07-23 10:27:19 -07:00
Nicolás Serrano Arévalo
93016410a9 Gestalt: A set of React UI components that supports Pinterest’s design language (#27279)
* Avatar Props Interface
:

* Box Props Interface

* Button Props Interface

* Card Props Interface

* Nicked the types, Column Props Interface

* Container Interface Props

* GroupAvatar interface

* Finished

* Linted and fixed:

* 2.6

* Added Project Github URL
2018-07-23 10:20:20 -07:00
RCGuillaume
f73ffb216e @types/react-select: missing parameter 'index' to ValueRendererHandler (#27265)
* @types/react-select: added missing parameter 'index' to ValueRendererHandler

* @types/react-select: increment version
2018-07-23 10:19:24 -07:00
bill-improbableio
2fa8371b3c react-redux: Fix permissive decoration props not handled correctly (#27260)
* Bump ts version to fix failing tests

* Fix optional props not merged correctly

* Bump version

* Correct the fix

* Add test for more-general injected props
2018-07-23 10:17:58 -07:00
Tim Keiner
fe1eceaa12 Adding type definiton for npm package of yoga-layout (#27184)
* Created type-definitons for yoga-layout package

* 331

* Fixed issues according to tslint

* Fixed typo

* fixed file name to match suddenly appeared new file-name-casing rule

* go back to <pkg-name>-tests.ts and disable file-name-casing to false
2018-07-23 10:11:19 -07:00
Jake Marsh
401f812db2 Update next definitions for 6.1.1 - router events API (#27143)
* Update nextjs router events API

* fix tests and update header

* fix header

* handle routeChangeError and update tests
2018-07-23 10:10:40 -07:00
Martin Charles
03212af7da [react-side-effect] Removed Any Types (#27132)
* Improved react-side-effect Typings

Removed all `any` typings. Added tests which test usage.

* Made Lint Less Permissive

It doesn't need to be so permissive.

* Fixed Whitespace

* Added Typings for Server Stuff

Used a more robust way than suggested in review. Added tests too.

* Fixed Server Types

`peek` can return either a `TServerState` or `TState` when `withSideEffect` is
provided `mapStateOnServer` (based on runtime). `rewind` always returns
`TServerState` when `mapStateOnServer` is provided, otherwise it returns
`TState`.
2018-07-23 10:10:12 -07:00
Dimitry
c931d79d06 Update url-parse typings to 1.4 (#26947) 2018-07-23 10:08:16 -07:00
Olegs Jeremejevs
4461b3198a minimal-bit-array: Initial commit (#27501) 2018-07-23 10:02:13 -07:00
Daniel Cassidy
664a91a98f Add type definitions for stream-each. (#27306) 2018-07-23 08:59:16 -07:00
Vitor Luiz Cavalcanti
661a25ec4c Create type definition for object-keys module (#27307) 2018-07-23 08:58:47 -07:00
Daniel Cassidy
710912817e Add type definitions for flush-write-stream. (#27308) 2018-07-23 08:58:07 -07:00
Daniel Cassidy
ff8d26ef8e Add type definitions for parallel-transform. (#27312) 2018-07-23 08:57:00 -07:00
Joseph Carroll
04a282b63f Add registry-auth-token (#27285)
* Add registry-auth-token

* Fix: type definitions header

* Fix: Change Typescript version: 2.8

* Fix: Clean-up test cases
2018-07-23 08:53:59 -07:00
Muhammad Fawwaz Orabi
92f7e2f8d1 Add types for react-aria-modal (#27228)
* Add types for react-aria-modal

* Bumpy min TS version

* Trigger CI

* Trigger CI
2018-07-23 08:48:39 -07:00
Gerhard Stöbich
b3eaeded0a [redux-form/v4] Fix build by adding package.json (#27212) 2018-07-23 08:47:36 -07:00
Florian Keller
af3a897849 Add types for bro-fs (#27445) 2018-07-23 08:46:54 -07:00
Sahbi Sahloul
a0d6a36527 Gapi - Use 'any | boolean' for error result as in the official documentation (#27446)
* Use any instead as specified in the official documentation

Link
https://developers.google.com/api-client-library/javascript/features/promises#using-promises

* Use boolean if not JSON-parseable
2018-07-23 08:46:34 -07:00
Florian Keller
5090fabde6 Add types for libsodium-wrappers (#27447) 2018-07-23 08:44:28 -07:00
Jon Freedman
749ebd987f React plotly.js (#27461)
* typing as per https://github.com/plotly/react-plotly.js/issues/80

* fix travis build (thanks intellij...)

* bring typescript version inline with react
2018-07-23 08:41:13 -07:00
Hank Fanchiu
73c1a6ca60 Fix "compoment" typo in index.d.ts (#27454) 2018-07-23 08:34:52 -07:00
Sergey Kuznetsov
67b046cb86 Make chrome.tabs.highlight callback as an optional (#27453) 2018-07-23 08:31:25 -07:00
Mikhail Kafanov
2960264e36 Parse: updated TriggerRequest interface, added missing afterFind trigger, fixed beforeFind signature (#27462)
* Added missing property to AfterSaveRequest

* Update index.d.ts

- TriggerRequest interface matches one from official Parse API docs
- added missing afterFind hook and related AfterFindRequest/AfterFindResponse interfaces
- fixed beforeFind hook signature
2018-07-23 08:31:02 -07:00
mail6543210
d57015fa9f Add missing/undocumented functions (#27464)
Those functions and properties are not documented.
2018-07-23 08:30:19 -07:00
Errietta Kostala
23735e51b7 jsoneditor: Add 'schemaRefs' option (#27474)
* Add 'schemaRefs' option

* reference new version

* fix comment
2018-07-23 08:29:54 -07:00
Mike North
fbe2d02cb2 [ember] Ember.Container#factoryFor (#27483) 2018-07-23 08:29:33 -07:00
Jimmy Grand
1cbfb298e6 mongoose: countDocuments and estimatedDocumentCount definitions added (#27486) 2018-07-23 08:29:09 -07:00
Bond
293adc3195 Add functions to take and release locks. (#27491)
Add functions to take and release locks.

742a86e0af/lib/job.js (L153-L180)
2018-07-23 08:28:38 -07:00
Simon Werner
3efa86f7a2 Fix issue with stampit when using TS to check JavaScript (#27478)
* Fix issue with stampit when using TS to check JavaScript

**Caveat: This has not been tested within a TypeScript library.***  My knowledge of TypeScript is limited, so this has not been tested.  hence, I suggest @lummish and/or @koresar review this PR.

## What it's fixing

Currently I get the following error with the vanilla stampit example below, it applies to the `const Fighter = stampit(Character(...` line and TypeScript highlights the problem across the whole function:

```sh
Expected 0-1 arguments, but got 2
```

Example taken from main stampit example. 
```JavaScript
import stampit from 'stampit';

const Character = stampit({
  props: {
    name: null,
    health: 100,
  },
  init({ name = this.name }) {
    this.name = name;
  },
});

const Fighter = stampit(Character, {
  props: {
    stamina: 100,
  },
  init({ stamina = this.stamina }) {
    this.stamina = stamina;
  },
  methods: {
    fight() {
      console.log(`${this.name} takes a mighty swing!`);
      this.stamina--;
    },
  },
});
```

* Make stampit() more generic

As discussed with @koresar.
2018-07-23 08:28:08 -07:00
Alan Agius
6798d64a19 fix: add missing syntax type (#27471) 2018-07-23 08:27:25 -07:00
Adam Haglund
ba10e72285 react-dnd*: Remove and Fix Types (#27466)
* fix types for react-dnd-multi-backend

* remove react-dnd and react-dnd-html5-backend typings

* remove typings for react-dnd-test-backend

* update types for react-dnd-touch-backend

* fix tests for react-dnd-multi-backend

* add to contributors
2018-07-23 08:26:53 -07:00
geta6
420fde9ad1 Fix incorrectly typed MultiCompiler.compilers in webpack (#27494) 2018-07-23 16:08:40 +01:00
BehindTheMath
4545f71dc4 [papaparse] Fix missing namespace for an external interface (#27353)
The un-namespaced ReadableStream is defined in lib.dom.d.ts. The
ReadableStream referenced here should be the one defined in
@types/node.
2018-07-23 06:13:58 +01:00
Ferdy Budhidharma
ffc8351127 [prop-types] use conditional types for better prop type inference (#27378)
* feat(prop-types): use conditional types for better prop type inference

* fix(tests): fix publish tests

* fix(prop-types): add custom prop validator, and switch requireables

* fix(test): revert ReactFragment change

* fix(prop-types): namespace imports from react like a good boy

* CR changes

* actually remove param from validator

* remove anyvalidationmap

* everyday i'm test...ering

* SEMICOLONS WHY

* retain null in undefaultize
2018-07-21 13:41:15 +01:00
Suby Raman
ec4917b204 webappsec-credential-management: tighten webauthn type options/naming (#27281)
* tighten web authentication enum options as per the most current spec

* (rearrange UV type)

* pass linter.
2018-07-20 18:22:09 -07:00
ondratra
355dbd50e8 mongoose: countDocuments() definitions added (#27283) 2018-07-20 18:20:55 -07:00
Matthieu Dartiguenave
bfe8783484 Update java to 0.9.1 (#27273) 2018-07-20 18:20:00 -07:00
Paul Sachs
cd23add574 recompose: Support OuterProps on withState enhancer (#27263)
* Support OuterProps on withState enhancer

Without this, any outer prop types are not handed into the component.

* Add tests withState with explicit outer types
2018-07-20 18:15:13 -07:00
Chad Auld
b92d9cfc1f Renaming react-select openAfterFocus prop to openOnClick (#27241) 2018-07-20 18:14:14 -07:00
Billy Shih
af73b62052 [Victory] Add VictoryTooltip Types (#27177)
* Add VictoryTooltip Types

* Add VictoryThemeDefinition
2018-07-20 18:13:56 -07:00
Billy Shih
57a76824ba [Victory] Fix tickFormat types (#27243) 2018-07-20 18:13:07 -07:00
Daniel Fischer
f15ad0848a [oauth2-server] Add error classes (#27201)
* [oauth2-server] Add error classes

* [oauth2-server] Add code and name to OAuthError - they seem to be set by all subclasses

* [oauth2-server] Add message to OAuthError

* [oauth2-server] validateScope should actually return a string, not an array

* [oauth2-server] correct properties of OAuthError
2018-07-20 18:11:58 -07:00
Martin Ždila
87924f4e36 added optional parameters to "websockify" and exported interfaces (#27165)
* added optional parameters to "websockify" and exported interfaces

* Update index.d.ts

removed redundant export keywords
2018-07-20 18:11:02 -07:00
devCola
045b6a27c7 [react-router-config] add switchProps to renderRoutes (#27161) 2018-07-20 18:10:27 -07:00
Linus Unnebäck
83aaaffa9f [leveldown] Fix static functions (#27174) 2018-07-20 18:09:22 -07:00
Dave Dunkin
38006605b1 [fabric] Remove invalid override in Group interface. (#27182)
The `get` override fails to compile in TypeScript 2.9.
2018-07-20 18:08:31 -07:00
Matt Bishop
64dc73c84c Add missing methods withinX (#27176) 2018-07-20 18:07:50 -07:00