Commit Graph

47896 Commits

Author SHA1 Message Date
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
Zhang Yi Jiang
3eca76c410 [react-router-dom] Add generatePath reexport from react-router (#27178) 2018-07-20 18:07:32 -07:00
Atrahasis
15d7eb53b3 [@types/three]: Improve material type casting, implementation and doc. (#27413) 2018-07-20 18:04:08 -07:00
Clément
86433acc82 [React-native-auth0] Add language value in AuthorizeParams (#27416)
* Add language value

* Update test
2018-07-20 18:02:29 -07:00
Oliver Joseph Ash
aee338f484 node-fetch: correct Headers.raw type (#27364)
* `node-fetch`: add test for `Headers.raw`

* `node-fetch`: `Headers.raw`: add `string[]` to index signature value type

* `node-fetch`: `Headers.raw`: add `undefined` to index signature value type

* `node-fetch`: enable `strictNullChecks` and fix errors

* Revert "`node-fetch`: `Headers.raw`: add `undefined` to index signature value type"

This reverts commit 15ad14d72c42fa1f3ba472bc15f38a88230f3a4f.

* Fix expect type format

* Remove string
2018-07-20 18:01:15 -07:00
geraldinelemeur
b7ba5e828b [mongodb] Cursor.next() resolves to null if no more documents. (#27402) 2018-07-20 18:00:59 -07:00
mattmm3d
9b47d926c6 Splice can take a number array as an argument for 2D arrays (#27239) 2018-07-20 18:00:19 -07:00
Dasa Paddock
0575e7dbc3 Small updates for version 4.8 (#27426) 2018-07-20 17:59:26 -07:00
Alfie Johnson
fa54ed4ad3 I believe IDatepickerPopupConfig has everything in IDatepickerConfig, plus additional things, so it should extend IDatepickerConfig. (#27452) 2018-07-20 17:59:15 -07:00
Bond
e1d9a3c9f4 GetJob returns a promise of job or null (#27448)
Says it in the jsdoc even.
2018-07-20 17:58:10 -07:00
Willem Sonke
9fa36689ab [snapsvg] Make handler optional for un... methods (#27252)
For `unclick` the handler argument was already marked as optional. As in snapsvg's [implementation of the `un...` methods](https://github.com/adobe-webplatform/Snap.svg/blob/master/src/mouse.js#L340) there is no difference in how the various events are handled, the handler should also be optional for the other event types. I tried this with `undblclick` in particular, and it works as expected (removes all `dblclick` events).
2018-07-20 17:57:12 -07:00
FUJI Goro
9fa7394da1 [@types/jquery] fix: let jQuery's insertAfter / insertBefore accept Node and JQuery<Node> (#27404)
* fix: let jQuery's insertAfter / insertBefore accept JQuery<HTMLElement> as well as HTMLElement

* jquery now requires typescript 2.4

* fix jQuery dts to compile on TypeScript 2.3
2018-07-20 17:56:39 -07:00
daniel-maier
37c8afcfa9 Update to vertx3-eventbus-client 3.5 (#27070)
* Update index.d.ts

Update to vertx3-eventbus-client 3.5

* Update index.d.ts

* update to vertx3-eventbus-client 3.5
2018-07-20 17:56:20 -07:00
Adam Eisenreich
05bf38481e Added more component definitions to video.js (#27163)
* Added more component definitions to video.js

* Update getComponent

This will allow to write `class MyComponent extends videojs.getComponent('Button') { }`.

* addChild correctly returns given component

* typo in ClickableComponent

* Added ControlBar

* Fixing whitespace errors

Fixes ERROR: 26:49  typedef-whitespace

* Update video.js-tests.ts

* Update index.d.ts

* Bump version to 2.1

* Fix tslint errors

* fixup! Bump version to 2.1

* fixup! Fix tslint errors
2018-07-20 17:56:11 -07:00
Miles Johnson
d73e42043d [JSS] Export the JSS class declaration (#27428)
* Export the JSS class.

* Fix tests.

* Revert "Fix tests."

This reverts commit 5d2acc01ab583dca20999ecc9d9d04e899066f98.
2018-07-20 17:55:46 -07:00
Lee Standen
05d47a553b @types/react-circular-progressbar bump version to match upstream version, as release is needed (#27420)
* version bump to match upstream version

* Fix version number
2018-07-20 17:55:07 -07:00
Scott Trinh
f5f7c436b9 knex: Allow null value for decimal precision (#27422)
* Allow null value for decimal precision

* Update tests

* Fix weird wording in test comment
2018-07-20 17:54:56 -07:00
Rongjian Zhang
62730ac062 classnames: change value of ClassDictionary to any (#27280) 2018-07-20 17:54:28 -07:00
Kamil Waheed
08cd3c3b36 Fix incorrectly typed GatewayDest's component prop in react-gateway (#27414)
* Use correct type for GatewayDestProps component

* Test react-gateway GatewayDest component prop type

* Add another test for react-gateway GatewayDest component prop type
2018-07-20 17:53:51 -07:00
Zhu Zijia
7212e9a242 Fix incorrect exports in npmlog (#27396) 2018-07-20 17:52:46 -07:00
nakagawa424
435aec3769 cytoscape: fix filtering functions (#27411)
* cytoscape: fix map()

* add tests

* cytoscape: fix filtering functions
2018-07-20 17:51:40 -07:00
Will Koster
5d63e04d34 Fix type of mongodb.connect (#27398)
It had never been updated from 2.x. Fixes #23548.
2018-07-20 17:51:22 -07:00
nakagawa424
f805351bd7 typo (#27409) 2018-07-20 17:50:56 -07:00
Jake Richards
89ac4daab1 Add missing waitFor types (#27331) 2018-07-20 17:50:38 -07:00
Andrew Hyndman
6aa9bbdf5c <Sticky> component should expect a function as a child (#27401) 2018-07-20 17:50:26 -07:00
Adam Haglund
1d4e623ccb add options to request.auth method (#27373) 2018-07-20 17:50:03 -07:00
Nikolay Alexandrov
a43c276f2b [mock-knex] Knex could return any type of data (#27390) 2018-07-20 17:47:43 -07:00
S McDowall
e02291c092 Enhanced return type of Koa Middleware (#27203)
As a Koa Middleware, koa-response-time should indicate it returns a Middleware type not "any" which, in strict TS projects causes warnings.
2018-07-20 17:46:44 -07:00
Mitchell Grice
859b3edaa7 Google.Visualization correct column index type (#27383)
Changed `columnIndex` to be a number like all its neighbours
2018-07-20 17:46:28 -07:00