Commit Graph
44044 Commits
Author SHA1 Message Date
Michael Dodge c326abb53b Fix missing setOptions arg 2018-05-02 17:05:37 -06:00
Unknown 2421842822 Add definitions for ace-diff 2018-04-20 17:27:18 -06:00
Conan ee2f1b215e [Joi] - add schema option to .when (#25136) 2018-04-20 11:42:37 +12:00
Nick Burrell 847ad849a9 @types/mapbox-gl maxDuration property in FlyToOptions (#25088) 2018-04-20 11:41:48 +12:00
Gareth Parker c107a976ba Glue - Fix to plugins (#25141) 2018-04-19 14:38:26 -07:00
Daniel Schmidt 1aab1e3668 add addEventListener to eventsource (#25125) 2018-04-19 14:25:09 -07:00
Thomas Mørch 8a3389ca45 Adding more siblings to Red interface in node-red (#25013)
* Adding more siblings to Red interface in node-red

* Fixed typo
2018-04-19 11:43:24 -07:00
Edo Rivai 57f3c174f9 [knex] Add QueryBuilder to knex.raw bindings (#25100)
* Ignore no-var tslint rule

* [knex] Add QueryBuilder to knex.raw bindings
2018-04-19 11:42:38 -07:00
Jacob Gillespie c9de295a09 react: change default type value of snapshot to any (#24987)
* Add getSnapshotBeforeUpdate test for React.createElement

* Add test for using component with new lifecycles

* Add test for pure component with new lifecycle methods

* Chage react snapshot SS to default to any
2018-04-19 11:19:37 -07:00
Alexey Gorshkov f0bf0a7cef added typings for mapbox-gl-leaflet (#25120)
* added typings for mapbox-gl-leaflet

* fixed build errors
2018-04-19 11:16:02 -07:00
Ricardo Albuquerque Pinto 4f374d225e React animate on scroll (#25131)
* Added type definitions for react-animate-on-scroll

* Corrected itens pointed by tslint
2018-04-19 11:15:21 -07:00
JFGHT 97163eecd6 Fixed AccountResponse's signers' object (#25095)
* Update index.d.ts

Fixed AccountResponse signers object.

* Update index.d.ts

Fixed public_key in another place.
2018-04-19 11:11:54 -07:00
Edward Sammut Alessi 3b33d22565 React-navigation onTransition event pass props (#25121)
* React-navigation onTransition prop passing

* Only transition start takes a promise
2018-04-19 11:09:13 -07:00
Léo Pradel 97c9e20e98 dotenv-safe 5.0 (#25124) 2018-04-19 11:07:30 -07:00
Erik Moldtmann a3245ce3a4 change member types from variable to method (#25097) 2018-04-19 11:05:36 -07:00
Alex Watson ef37d26fdf Updating react-native-drawer definitions from 2.3 to 2.5 (#25118)
* Updating types for v2.5.0 of react-native-drawer

* Adding credit for updates

* Increment version number

* Adding test contents for proposed changes

* Adding missing comment markers

* Removing bad asterisk
2018-04-19 11:00:04 -07:00
ougunbu ac1a16b0d6 Added the statement of ActiveSelection (#25084)
* Added the statement of ActiveSelection

A declaration about ActiveSelection has been added after Group.

* Update types

Line number 1723: changed any[] to Object[]
Line number 1751: changed any to Group
Line number 1751: changed "(activeSelection: ActiveSelection) => any" to "(activeSelection: ActiveSelection) => void"
2018-04-19 10:59:28 -07:00
heroboy c72a09b00f [THREE] add Curve.arcLengthDivisions (#25116)
* Update three-core.d.ts

add `optionalTarget` parameter

* Update three-core.d.ts

add Curve.arcLengthDivisions

* fix Indentation
2018-04-19 10:58:49 -07:00
Glen M a146d147bb [atom] Support version v1.26. (#25111)
* [atom] bump to v1.26.

* [atom] support ContextMenu placement properties.
2018-04-19 10:57:56 -07:00
am df9434571f [adone] refactoring, additions (#25114)
* [adone] refactoring, additions
* [math] add decimal
* [math] index decomposition
* [math] add min, max

* [adone] collections, async
* add adone.async
* TimedoutMap -> TimeMap
* normalize lru constructors

* [adone] is, collection, regex
* [is] add multiAddress, ip options
* [collection.ByteArray] add readUInt24BE, writeUInt24BE
* [regex] ip options, ip
2018-04-19 10:57:20 -07:00
Kyle Roach ebf96ffc55 (react-native-modalbox) Remove ViewProperties from main props (#25128) 2018-04-19 10:56:03 -07:00
GiorgosPap 9f74c6978a added typings for npm package ng-tags-input (#24946)
* Added typings for ngTagsInput

* Adding typings for ng-tags-input (#2)

* fixed travis CI issues

* fixed CI travis issues #2

* fixed CI travis issues #3
2018-04-19 10:18:19 -07:00
Andy Patterson 026ef4246a [@types/mathjs] tests only test types, not runtime behaviour (#24875) 2018-04-19 10:09:13 -07:00
falsandtru 92760d42ac mocha: fix a regression bug (#25117)
* Revert "IRunner should be an instance of EventEmitter (#24971)"

This reverts commit 4478031e2f.

* Bump version

* Add tests
2018-04-19 10:05:43 -07:00
Bruno Scheufler aa93526d48 Node: Added missing windowsHide properties to SpawnOptions (revision) (#25122)
* Added missing windowsHide properties to SpawnOptions of child_process module

* Retrigger CI
2018-04-19 08:45:08 -07:00
leozhao0709 2111782c01 add prompt options (#24983)
add prompt options which used to prompt the user to select their account
2018-04-18 17:05:05 -07:00
Zev Spitz a0d4396ad9 ADOX; reduce any; return type of Execute; default properties; Bookmark (#25107)
* Removal of any

* Reduce any; fix default values in JsDoc

* Note about Execute and RecordsAffected; Default property on Recordset

* Expanded tests

* Fixed linting errors

* Fix long lines

* Define return value of Execute methods

* Add Bookmark

* Initial commit for ADOX

* Clean up `any` in ADOX

* Removed duplicate types from ADOX; add jsDoc to Attribute properties

* ADOX tests

* Lint fixes

* State flag comment

* Reduce any

* Add multicolumn index finder in tests file

* Update activex-access version

* Updated activex-infopath version
2018-04-18 15:48:25 -07:00
Dmitrii Sorin 4478031e2f IRunner should be an instance of EventEmitter (#24971)
* IRunner extends EventEmitter

https://github.com/mochajs/mocha/blob/master/lib/runner.js#L97

* Update index.d.ts
2018-04-18 15:33:38 -07:00
Dmitrii Sorin f8e09cf492 Describe loadFiles method and suite property (#24982)
* Document loadFiles method

* Document suite property

* Update index.d.ts
2018-04-18 15:33:10 -07:00
Rafał Majchrzak fdcf6d8469 feature(zapier-core-platform): add missing methods to Z object (#25101) 2018-04-18 15:32:37 -07:00
Justin Beckwith 8d24d22453 add d.ts for pumpify (#25049)
* add d.ts for pumpify

* pr feedback
2018-04-18 12:56:48 -07:00
Su-Shing Chen eabc8ca762 [@types/when] Make when.js promises compatible with native promises (#24904)
* Make when.js promises compatible with native promises

* Stricter compiler options and fix revealed issues

- Remove optional parameters from callbacks
- Replace `Number` type with `number`
- Improve type checking of when.settle and promise.inspect

* Add stricter types and backwards compatibility

* Minor renaming
2018-04-18 12:45:15 -07:00
Vytautas Strimaitis 3cb9ea62c0 Add type definitions for react-credit-cards (#25106)
* Added type definitions for react-credit-cards

* Lint fixes

* Use ReadonlyArray
2018-04-18 12:44:05 -07:00
Clark Stevenson 31b8246a65 Update Pixi.js to 4.7.3 (#25091) 2018-04-18 12:36:54 -07:00
Hendrik Schaeidt 589a7cff21 linkify-it: fix typings to reflect the api (#25102)
* the constructor accepts as first parameter or the SchemaRules or the
Options
* the validate callback can be either a string, RegExp or Validate type
* Rule only accepts a string or a FullRule, where when a string is set,
it applies the same rules as the given schema name
* add more tests to showcase and type test the implementation
2018-04-18 12:34:35 -07:00
Troy Lamerton 38c005479f add scope(s) to authorization code flow (#25096) 2018-04-18 12:34:15 -07:00
Pupskuchen 6b7871531f iframe-resizer: fix options property type (#24970)
* fix iframe-resizer options property type

add string as valid value type for bodyMargin

* iframe-resizer: change spacing
2018-04-18 12:33:39 -07:00
Atanas Atanasov e1894fb7e9 upgrade gijgo typings to version 1.9.6 (#25093) 2018-04-18 12:32:45 -07:00
Denis Tokarev 658cdc180f iScroll: Update types for zoom-related functionality (#25090)
* iScroll: zoom takes scale as first parameter

iScroll's zoom() method takes scale as the first parameter. The rest parameters are optional according to the documentation:
https://github.com/cubiq/iscroll#zoomscale-x-y-time

* iScroll: Update tests

Update tests for iScroll to reflect the changes

* iScroll: iScroll instance has 'scale' public numeric property
2018-04-18 11:28:34 -07:00
Jarom Loveridge 05650a7853 Add models hash object. (#25078) 2018-04-18 11:26:14 -07:00
Jarom Loveridge b244b1661a Add additional SSL configuration options. (#25079)
http://mongodb.github.io/node-mongodb-native/3.0/api/Server.html
2018-04-18 11:25:46 -07:00
Bruno Lemos a8de5cf374 [react-native] Add missing layout props (#25081)
borderEndWidth, borderStartWidth, display, end, marginEnd, marginStart, paddingEnd, paddingStart, start

https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/LayoutPropTypes.js
2018-04-18 11:25:23 -07:00
Lucas Terra 42c65bb609 [recompose] Add aliases to recompose sub modules. (#25069) 2018-04-18 09:59:23 -07:00
ikokostya cfbc3cd2a0 [got] Update to 8.3.0 (#25098)
* [got] Update to 8.3.0

Fixes #23454

* Return support for legacy url object

* Simplify agent option type

Because https.Agent is compatible with http.Agent

* Rename RequestOptions interface to InternalRequestOptions and move outside got namespace

* Add myself to "Definitions by" section
2018-04-18 09:58:55 -07:00
Jarom Loveridge 147bef129f Update SSLOptions to match documentation. (#25080) 2018-04-18 09:47:35 -07:00
Stephen Haberman 59648ae466 enzyme: Fix find override for components with strict null checks. (#24811)
* Fix `find` override for components with strict null checks.

With strict null checks enabled, code like:

   shallow(...).find(SomeComponent)

Would return ShallowWrapper<any, any>.

This is because the `find` override:

   find<P2>(component: ComponentClass<P2>): ShallowWrapper<P2, any>;

Would not match, and instead fallback on find(EnzymePropSelector).

The ComponentClass<P2> did not match because the `new(props?, context?)`
does not actually match to `new(props)`, as polymorphically `props` is
a restriction on `props?`.

Instead, we explicitly model each potential constructor pattern,
no-arg, 1-arg, 2-arg, and union them together.

This also allows enabling strict null checks for the entire enzyme
typings.

This required a few tangential changes, e.g. changing the test's
numberProp?/stringProp? to non-optional, as with null checking
enabled several of the existing tests were making non-null safe
accesses (e.g. the reduce/map/etc. checks).

* Change let to const to fix tslint error.

* Simplify prefix fix, just need to change props? to props.

Also, I changed the new return type from Component<Props, any> to
Component<Props, {}>.

This more exactly matches the ComponentClass declaration and fixes
what I was seeing with React Native where:

find(View) --> returns ReactWrapper<ViewProperties, any>
find(Button) -- returns ReactWrapper<any, any>

After changing the new return type to Component<Props, {}> then
find(Button) successfully returns ReactWrapper<ButtonProperties, any>.

* Fix lint error, as {} is already the default type.
2018-04-18 09:46:55 -07:00
Adam Laycock d38890b46a update to type-screeps 2.3.0 (#25086) 2018-04-18 09:46:05 -07:00
Kagami Sascha Rosylight 713eb722d9 [webidl2] extAttrs.rhs can be null (#25092) 2018-04-18 09:45:49 -07:00
Alexander Christie 3204acf72a Add support for the Collation argument to Cursors (#25099)
http://mongodb.github.io/node-mongodb-native/3.0/api/Cursor.html#collation
2018-04-18 09:44:50 -07:00
Don Denton 932727f578 Use partials for setting methods which take options (#24959)
This commit addresses a problem where the following would produce a type
error, even though it was valid code:

```typescript
setCanvasData({left: 23})
```

I have changed the argument type for all of the `setXXX` methods which
accept an object as their argument. In the spec files for cropperjs,
@fengyuanchen uses these objects as partials for setters. So I have
made the type definitions follow that same pattern.

I changed the `cropperjs.CropBoxData` type to act the same way as well.
It looks like  it was changed at some point, I am guessing to allow it
to be used as a partial in the `setCropBoxData` method. Since, like all
the other data structures here, it contains all members when you `get`
it, I have made all members required parts of the object and changed
the setter method to accept a partial.

I hope this all makes sense. Basically, I went from the first line below
to the second.

```typescript
setXXXXX(thing: cropperjs.SomeInterface): void

setXXXXX(thing: Partial<cropperjs.SomeInterface>): void
```

Then I changed `cropperjs.CropBoxData` to fit this new system.
2018-04-17 18:12:42 -07:00