Commit Graph
44024 Commits
Author SHA1 Message Date
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
Chris Krycho cfa60b7c66 Ember: Make RegistryProxyMixin.register options optional. (#25076)
* Ember: Make `RegistryProxyMixin.register` options optional.

* Add tests for register change.
2018-04-17 18:12:12 -07:00
Abram Booth 302ef7b926 Fix EmberArray.uniqBy typing (#25073) 2018-04-17 18:11:52 -07:00
Abram Booth 16c3ba2628 Fix DS.Model.belongsTo and DS.Model.hasMany args (#25072) 2018-04-17 18:11:35 -07:00
Stas Vilchik 8c3fdbcf02 [estree] make function declaration id nullable (#24854)
* [estree] make function declaration id nullable

* apply review feedback

* [estree] make class declaration id nullable
2018-04-17 13:16:35 -07:00
Aankhen 5227ddf7d5 Add write-file-atomically types. (#25064) 2018-04-17 12:52:41 -07:00
doomsower a9e8ad80f9 [react-navigation] Loosen navigator navigationOptions (#24943)
* Loosen navigator navigationOptions

* Fix linter
2018-04-17 09:57:43 -07:00
Giovanni Gonzaga 7354268b53 pg: query method missing an overload (#24940)
* Update index.d.ts

* Update pg-tests.ts
2018-04-17 09:57:01 -07:00
Angel Merino df22c6534a Update types for dnssd (#25054)
* Added types for dnssd

* Cosmetics, test passed

* Removed unused rules

* Service entry type added
Browser implements EventEmitter

* make tslint happy
2018-04-17 09:46:34 -07:00
Deyan Kamburov e498086912 [ignite-ui] Update Ignite UI typing to 18.1 release version (#24950) 2018-04-17 09:45:59 -07:00
NN 3540de43f9 Define ResourceType as type union. (#25060) 2018-04-17 09:43:25 -07:00
Aankhen d0e265975b Add promise-timeout types (#25062) 2018-04-17 09:39:52 -07:00
Keagan McClelland 5544c3749b [Ramda]: fixed pick and omit type signatures to reflect projections (#24936)
* fixed pick and omit type signatures to be more helpful

* changed pick to try and pass tests, tsnext still complaining

* added CaptJakk to contributors

* changed keyof index signatures to just strings

* simplified Omit type signature
2018-04-17 08:38:44 -07:00
Masahiko Okada bb51a7bf50 Fix JsonSchema.type definition in tv4 (#25020) 2018-04-17 08:37:36 -07:00
Dylan Scott d12aef03df express-winston: relax types on meta object (#25036)
* express-winston: relax types on meta object

* express-winston: change meta object type to
2018-04-17 08:37:05 -07:00
Omar Diab 2b5e8a5dd3 Fix missing splat in react-intl types (#25046) 2018-04-17 08:36:39 -07:00
Kyle Roach e460cfa0a3 (react-native) Adds SectionList scrollToLocation (#25050) 2018-04-17 08:35:25 -07:00
Jakub Řičař 1f555b0b4f [react-virtualized] Grid - add onScrollbarPresenceChange to GridCoreProps (#25040)
* Grid - add onScrollbarPresenceChange to GridCoreProps

* Fix irregular whitespace
2018-04-17 08:35:05 -07:00
Arne Schubert f8b7232c91 Add new type definition for toobusy-js (#25019)
* Add new definitions for toobusy-js

* Change import according to the change-request
2018-04-17 07:59:02 -07:00
Aneil Mallavarapu 33babb4010 Add types/jsonwebtokens-promisified (#25038)
* Add jsonwebtoken-promisified

* Add types/jsonwebtoken-promisified

* Remove tslint ignore statements & fix issues
2018-04-17 07:58:44 -07:00
Shayne Hartford 0b0483cf78 @types/snekfetch: Added optional Snekfetch.SnekfetchOptions (#24754)
* Edited version

* Because travis succ

* Added friend's suggestions

* Fixed

* Upgraded typescript version
2018-04-17 07:57:58 -07:00