Commit Graph
51136 Commits
Author SHA1 Message Date
Konrad Mattheis 84cd3d14ba fix engineVersion result type (#29382)
closes #28133
closes #27984
2018-10-02 12:34:24 -07:00
ulrichb 01b2281fde Fix wrong optional ChangeEvent parameter for InputProps.onChange (#29235) 2018-10-02 12:33:20 -07:00
Nicolás Andrés Gallinal 7aa3334626 Add types for browserify/commonjs-assert (#29188)
* add types for browserify/commonjs-assert

* fix tests and rename to 'assert'

* fix some linting errors, checking in to avoid closing of pull request

* fixed all lint errors
2018-10-02 11:37:55 -07:00
vladflorescu94 e72bee2ba3 [react-daterange-picker] Fix onSelect prop type definitions (#29370)
* react-daterange-picker - update props definitions, specifically onSelect prop

* react-daterange-picker - refactor type definitions and update test
2018-10-02 11:37:30 -07:00
Leonard Thieu 7c0825a58c [jquery] Drop type guards from isNumeric()/isPlainObject() and improve declarations of jQuery.data()/.data()/jQuery.css() (#29381)
* [jquery] `isNumeric` can not be a user defined type guard.

`isNumeric` can return true for strings in addition to numbers, but only for a subset of either. It'll return false for NaN (which TypeScript treats as a number) and for strings which cannot be parsed as a number.

* [jquery] `isPlainObject` can not be a user defined type guard.

Due to the imprecise way with how `PlainObject` is declared, `isPlainObject` can not be a user defined type guard.

* [jquery] Use https for links.

* [jquery] Fix link for `JQuery.jquery`.

* [jquery] Remove empty line before `@deprecated`.

For consistent formatting since examples were added.

* [jquery] Document additional `extend` parameters.

* [jquery] Improve declarations of `data()` to catch unintentionally passing `undefined` as a value.

This handles the more likely case of users passing a value that is possibly undefined.

* [jquery] Improve declaration of `css()`.

* [jquery] Minor improves to `proxy()` documentation.

* [jquery] Fix region folding for WebStorm.

WebStorm uses `// #region` to designate a region start while VS Code uses `// region`. They can both (must, in this case) be terminated using `// #endregion`. Using both `// #endregion` and `// endregion` results in odd behavior in both editors.
2018-10-02 11:37:07 -07:00
Miika Hänninen b8b95c0cf8 ramda: Workaround for type inference problem in Filter (#28592)
* ramda: add return type assertions for filter/reject test

* ramda: Add failing test for filter-in-pipe scenario

* ramda: Workaround for type inference problem in Filter

In the `Filter` type, when used inside a pipe, the second format always took
precedence in type inference, causing problems when a list was filtered.

With this change, you can manually specify whether you are using filter
for an array or an object, so usage in a pipe will work. You can also
leave out the second type parameter, in which case filter works as
previously.

```ts
import { pipe, filter } from 'ramda';

pipe(
    filter<string, 'array'>((val: string) => val.length > 2),
)(['list', 'or', 'object']);

pipe(
    filter<string, 'object'>((val) => val.length > 2),
)({ a: 'list', b: 'or', c: 'object' });
```
2018-10-02 11:34:46 -07:00
John Chijioke 6ae761686a Added type definitions for passport-auth0 (#29283) 2018-10-02 11:28:07 -07:00
Michael Su d586c806b6 Add definitions for Dropbox Chooser (#29355) 2018-10-02 11:26:21 -07:00
Konstantin 937594c479 Add typings for react-timeago package (#29358) 2018-10-02 11:16:08 -07:00
Kyle Farnung ce1ee6c93f Add typings for init-package-json (#29356) 2018-10-02 11:15:27 -07:00
Rostislav Shermenyov 1038a88306 Added type definitions for moveto (#29362) 2018-10-02 11:14:40 -07:00
Rostislav Shermenyov 93761156bb Added type definitions for rellax (#29366) 2018-10-02 11:13:26 -07:00
krlwlfrt ef23f9bd41 Add type definitions for tiny-async-pool (#29373) 2018-10-02 11:13:01 -07:00
Rostislav Shermenyov b2c9fc89f9 Added type definitions for layzr.js (#29372) 2018-10-02 11:12:28 -07:00
Gray Zhang 0378d4e1ac Allow false as cache group value (#29354) 2018-10-02 19:06:44 +01:00
Hirokazu Yokoyama 108e27b1cd ssh2-sftp-client: Edit definition. add for "on" function. (#29303)
* Add definition for "on".

* edit test code.

* remove symbol
2018-10-02 11:03:43 -07:00
Greg Jednaszewski 443931bc0e Add resolvesArg to sinon typings (#29329)
* Add resolvesArg to sinon typings.  See https://sinonjs.org/releases/v6.3.4/stubs/

* Switch tabs for spaces

* Fix doc comment for resolvesArg
2018-10-02 11:03:00 -07:00
Erik Elkins 1f989a0c29 Changing install signatures from yeoman-generator@3.0.0 (#29351)
* Changing install signatures from yeoman-generator@3.0.0

* Fixing tests

* Upping version

* Updating docs

* Fixing linting
2018-10-02 11:02:15 -07:00
Troepster c50244c6b2 Adding missing width option to QRCodeRenderersOptions for qrcode (#29363)
* Adding missing width option to QRCodeRenderersOptions

* Adding missing width option to QRCodeRenderersOptions for qrcode

* Fixed version
2018-10-02 11:00:57 -07:00
Jeremy Wells 3f13be3957 [@types/react-onsenui] Add SearchInput (#29365) 2018-10-02 11:00:39 -07:00
Naizam Olakara 52d0bc5891 Typedefinitions for Oracle Jet (#29350)
* Initial commit.

Does not compile yet due to strictNullChecks and all. Need to fix those in the next transaction.

* Update to latest version

* npm test fail fix

* fix npm test error

* fix npm test

* fix npm test

* test. move to scoped

* move to scoped

* move to scoped location

* update for scoped

* Update for scoped

* Remove trailing space
2018-10-02 10:14:47 -07:00
Olivier Favre 5d58b659a4 node: Export Http2ServerRequest and Http2ServerResponse as class (#29173) 2018-10-02 10:13:49 -07:00
Roman 0155a5a12a [react-router-v3] Fix createHref & createPath argument (#29368)
* fix(react-router): update first argument of createPath & createHref

Allow LocationDescriptorObj to be passed

* chore(react-router): update contributors

* test(react-router): add tests for createHref
2018-10-02 17:55:05 +01:00
Kelly 0d0967c31b react-highlight-words - update props definition, specifically findChunks prop (#29209)
* update props definition, specifically findChunks prop

* added name to typings header

* bump version number in header
2018-10-01 21:51:24 -07:00
Mike Doughty 786382439b Fix bad return type in lazyJS ObjectLikeSequence.get() (#29210)
* Fix bad return type in lazyJS ObjectLikeSequence.get()

* Lazy.JS 0.3.4
2018-10-01 21:50:31 -07:00
Mike Engel 589dc81bb9 Update types for massive 5.x (#29301)
* feat(massive-5): Update types for massive 5.x

* feat(massive-5): Incorporate feedback from @dmfay
2018-10-01 21:49:06 -07:00
Pierre e7c00497ec Add content in AutocompleteUIParams (#29180) 2018-10-01 21:47:05 -07:00
mrz5018 ec8b0ad286 Adds alternative client side collection to meteor-publish-composite (#29171)
* Adds alternative client side collection to meteor-publish-composite

The library has the ability to create a name for a collection that the entire publication (or only a portion)
"belongs to" on the client side.  It is described in greater details on the meteor-publish-composite
post here:

http://braindump.io/meteor/2014/09/20/publishing-to-an-alternative-clientside-collection-in-meteor.html

* Changes collection to collectionName
2018-10-01 21:45:21 -07:00
ptrdu a9d83598bd Added type definitions for ali-oss (#29285)
* FEAT: add bucket operations

* FEAT: add function definition, current at object uploadPartCopy

* FEAT: add object operations definitions

* FEATURE: add rtmp operations definition

* FEAT: add ImageClient and cluster

* FEAT: add test

* FIX: fix some used import and the typescript version

* FIX: fix the tsconfig and tslint error
2018-10-01 21:44:19 -07:00
Ricki c229bc1e1b Added type definition for react-lottie (#29289)
* Added type definition for react-lottie

* Minor fixing

* strictNullChecks enabled
2018-10-01 21:43:13 -07:00
Veetaha e2e394b456 Added type definitions for npm 'webprogbase-console-view' library. (#29291)
* added type definitions for my teacher Ruslan Hadyniak JavaScript npm package

* removed [strict] option from tsconfig.json

* added strictFunctionTypes to tsconfig.json

* added tsc >=2.2 restriction to the header

* made Response.send() second argument compulsory

* undone changes from the previous commit

* changed Request.data from FormData | undefined to FormData | null

* Removed constructor from Request, modified StateLinks according to the new 1.1.1 package version interface

* Changed type definitions according to 1.2 stable version
2018-10-01 21:42:48 -07:00
Avi Vahl 25ea685893 [chroma-js] updates types to v1.4.0 (#29150)
* [chroma-js] updates types to v1.4.0
- optional `mode` param for `Color.hex`
- `Color.num()` was officially documented, so exposed in @types as well

refs:
https://github.com/gka/chroma.js/blob/master/CHANGELOG.md
https://gka.github.io/chroma.js/#color-hex
https://gka.github.io/chroma.js/#color-num

* Remove extra empty line

* Remove extra whitespace
2018-10-01 21:41:33 -07:00
bfrengley 6525e0e718 Update mapbox types to v0.49.0 and fix some types (#29142)
* Update mapbox types to v0.49.0 and fix some types

* Remove unused import
2018-10-01 21:41:09 -07:00
Simon Schick d2b4b1627c chore(shot): update to v4 (#29275) 2018-10-01 21:31:48 -07:00
Michael Zlatkovsky 767a96b941 Correct onRuntimeError to take error, not string (#29277)
* Correct `onRuntimeError` to take error, no string

* Appended tests to use onMessage/onRuntimeErrror
Also ran prettier on the file
2018-10-01 21:30:45 -07:00
Rostislav Shermenyov f24723f03f Added type definitions for aos (#29297) 2018-10-01 21:29:56 -07:00
Ivan Kerin 6a90c99e70 Add type definitions to lambda-tester package (#29327) 2018-10-01 21:25:24 -07:00
Nicolas Ramz e48af07ef9 Added definitions for the athenajs npm package (#29326)
* ADDED: initial files, more work needed

* FIXED: more classes

* FIXED: some fixes to incorrect types so that gods has no errors

* IMPROVED: more strick tsconfig
FIXED: tslint.json typo in filename

* FIXED: npm test errors
ADDED: UMD global var AthenaJS
2018-10-01 21:24:20 -07:00
Dan Freeman 52fe47713e [core-object] Add typings for core-object (#29344) 2018-10-01 21:20:55 -07:00
Dan Freeman b4529f27c1 [console-ui] Add declarations for console-ui (#29343) 2018-10-01 21:20:16 -07:00
wulunyi 9b1b3dbc5d koa-static-server(feat) (#29353)
add koa-static-server types
2018-10-01 21:19:23 -07:00
Shinya Ohyanagi 19bdbdb63f Fix react-map-gl props typo (#29276)
`resuse` should be `reuse`.

see https://github.com/uber/react-map-gl/blob/7f0909fff15339862ba78d93929a4505588bbebb/src/mapbox/mapbox.js#L34-L35
2018-10-01 21:16:42 -07:00
Garrett Dawson b0b15a7a32 react-map-gl - Make mapboxApiAccessToken prop optional (#29241)
* Make mapboxApiAccessToken optional

* Revise transformRequest
2018-10-01 21:12:58 -07:00
hector7 e15cb60ee0 [mongodb] Checked TSchema on insert and update documents (#29245)
* Schema definition on insertOne, insertMany and update definitions. Added types as OptionalTSchema and UpdateQuery.

* added user on definitions by

* added missing properties and url docs

* added missing properties and url docs with test

* added missing properties and url docs with test

* changed OptionalTSchema to Partial, modified logic on update funcs, this will be more strict
2018-10-01 21:12:14 -07:00
molsson 8c197683d5 svg: Add missing SvgCommonProps "transform" (#29261) 2018-10-01 21:11:37 -07:00
Vasil Rimar 8b3edb2a54 mithril: Fix doc comments (#29290) 2018-10-01 21:11:17 -07:00
Dima d7c0940e9e Improve declaration file for "react-input-mask" (#29166)
* Improve declaration file for "react-input-mask"

 - add missing interface for Selection

* Improve declaration file for "react-input-mask"

 - downgrade typescript version
2018-10-01 21:10:57 -07:00
Daniel Gray 743ececa23 Add attributes to response class of the Selenium HTTP client (#29251) 2018-10-01 21:10:21 -07:00
rasmk 93bfb5126a Ramda: compose/pipe should accept last/first function that takes no params (#29292) 2018-10-01 21:09:43 -07:00
Ciaran Liedeman 571b816d34 Allow inline styles (#29288) 2018-10-01 21:09:13 -07:00