Commit Graph

33182 Commits

Author SHA1 Message Date
william chang(張仲威)
dfda34b1c2 [node] net.Server, http.Server, http.ServerRequest, http.ServerResponse, http.ClientRequest, http.IncomingMessage, http.ClientResponse fix from interface to class and add constructors. (#18281)
* [node] net.Server, http.Server, http.ServerRequest, http.ServerResponse, http.ClientRequest, http.IncomingMessage, http.ClientResponse, http.Server fix from interface to class and add constructors.

* add http constructor tests

* fix lint

* add author

* fix: remove rejectUnauthorized,
createConnection callback make more detailed,
http.Server requestListener more detailed,
add export OutgoingMessage, ServerResponse and ClientRequest extends OutgoingMessage.
combine the constructors in ClientRequest

* add more http tests

* remove trailing space

* remove deprecated apis, private props not documented, seperate httpHeaders to incoming and outgoing, fix rejectUnauthorized prop misplaced, use () => void for callback

* typo

* settimeout return this
2017-07-24 10:37:46 -07:00
Nick Graham
910023509a [material-ui] Adds missing subtitleStyleProps to GridTile (#18271)
* Adds props to GridTile

* Removes the children prop that I added
2017-07-24 10:33:52 -07:00
Dimitri Benin
5bee3a49cb [file-type] add typings for browser version (#18264)
* [file-type] add typings for browser version

* [file-type] fix url to definitelyTyped repo in header
2017-07-24 10:33:31 -07:00
Drew Hays
0429e70ac5 Fix a few next.js type issues (#18262)
- Some of the `render` parameters should've been made optional.
- The export style of the `'next'` module wasn't correct.
- Added some missing static methods to `Head`
- Some readonly properties of `Router` can be `undefined`.

Note that this also means that `'next'` technically needs to be imported
like `import next = require('next');`
2017-07-24 10:32:29 -07:00
Andy
0473fda9c6 graphql: Lint (#18257) 2017-07-24 10:29:25 -07:00
Dimitri Benin
2ba36f6527 [execa] align to v0.7, add missing interfaces (#18251) 2017-07-24 10:28:19 -07:00
Alex Ruzzante
bfbdf31ceb [Office-js] Add item.dateTimeCreated and ui.closeContainer (#18248) 2017-07-24 10:27:58 -07:00
Kamil Gałuszka
f173f58c44 fix(stripe-checkout): fix removed stripe package in favor of stripe-v2 (#18243) 2017-07-24 10:25:22 -07:00
AngryPowman
9ffab73263 Add delegate for parse (#18222)
* Add delegate for parse

* explicit type of node param
2017-07-24 10:14:27 -07:00
Albert Willemsen
5dcf627501 fix for issue #18211. (#18213) 2017-07-24 10:11:00 -07:00
lobo87
869871c069 googlemaps: possibility to use an array for the property country in GeocoderComponentRestrictions class (#18212)
* added cordova-plugin-native-keyboard

* updated to conform linting checks

* onSubmit callback is now optional

* added possibility to use an array for the property country in GeocoderComponentRestrictions
2017-07-24 10:10:04 -07:00
Ben
eb11dbc386 Adding the 'resources' property to AlexaObject (#18210)
* Adding the 'resources' property to AlexaObject

* Updating alexa-sdk tests

* Adding myself to credits for alexa-sdk
2017-07-24 10:09:19 -07:00
Vito
0a1c229ee5 refactor react-overlays into individual modules (#18197)
* refactor react-overlays into individual modules

also adds correct definitions for some modules whose definitions
were incorretly being imported from react-bootstrap.
(react-bootstrap depends on react-overlays, not the other way around)

* use exported namespace hack instead of default exports
2017-07-24 10:05:39 -07:00
Dimitri Benin
dfeadbd5ac [cookie-parser] finish incomplete typings (#18191)
* [cookie-parser] finish incomplete typings

* [cookie-parser] bump compiler version as suggested by travis output

* [cookie-parser] revert compiler bump

* [cookie-parser] restrict compiler version in failing packages

* [cookie-parser] fix indentation
2017-07-24 10:04:09 -07:00
Daniel Espeset
2fa3d94c92 Expands support for Esprima comments (#18182)
Adds an optional `comments` field to the `Program`, which will be present 
if the AST is created with Esprima using the `{ comments: true }` option.

Adds an optional `innerComments` field to `BlockStatement` which will be
present if the AST is created with Esprima using the `{ attachComments: true }`
option, given the following code:

```.js
function foo(n) {
    // comments in an empty block are `innerComments`
}
```

Note that though these fields are not specified in the ESTree specification
they extend the support already present in this set of types for 
`trailingComments` and `leadingComments`, which are also unspecified.
2017-07-24 10:03:04 -07:00
Thomas Barrera
67a886f023 Adding new overload for using methods (#18175)
https://github.com/wenzhixin/bootstrap-table/blob/develop/docs/_i18n/en/documentation/methods.md
2017-07-24 09:59:52 -07:00
Dave Parslow
6333711213 Export the configuration interface (#18162)
Added class for the server instead of interface
Added TS lint file and fixed errors
2017-07-24 09:20:10 -07:00
sixinli
84384b0417 add support for AMD require (#18142) 2017-07-24 08:58:05 -07:00
Sl1MBoy
e41d2c543c Added UnauthorizedError class to @types/express-jwt. (#18137)
* Added UnauthorizedError class.

* Updated definition to match gridstack v0.3.0

* Revert "Updated definition to match gridstack v0.3.0"

This reverts commit 2e1f194e68ffd914af08e1f6265cdc7ffb9f44f4.

Commited to wrong branch
2017-07-24 08:56:01 -07:00
Dimitri Benin
674bf789c4 [cucumber] add more specific typings for TableDefinition (#18131) 2017-07-24 08:55:35 -07:00
Dimitri Benin
01924ef872 [promise.prototype.finally] add typings for the non-shim variant (#18114)
* [promise.prototype.finally] add typings for the non-shim variant of promise.prototype.finally

* [promise.prototype.finally] change indentation to 4 spaces

* [promise.prototype.finally] fix lint error
2017-07-24 08:54:38 -07:00
dyst5422
64099f0b4c fix(point-in-polygon): Fixed point-in-polygon type declaration (#18069)
* fix(point-in-polygon): Fixed point-in-polygon type declaration

The export format of point-in-polygon did not match the type declaration format.

* Fixed removed definition author
2017-07-24 08:43:11 -07:00
Eloy Durán
765d26a240 Merge pull request #18274 from paranoidjk/master
fix(ReactNative): ScrollView.props.style definition error
2017-07-24 13:25:20 +02:00
paranoidjk
6310159eb6 fix(ReactNative): ScrollView.props.style definition error 2017-07-24 14:45:18 +08:00
Michel Boudreau
9ecdd3cbcb Updating Q to have optional resolves (#18200)
* Remove export as namespace

This particular file was causing me issues with the new typings-2.0 since it doesn't support exporting namespaces from within modules.

* Updating Q to have optional resolves, adding tslint file, fixing tests compilation

* forgot to merge in latest from upstream, replicated the changes into new folder structure

* adding tslint to q

* latest changes to please tslint, but is currently breaking the .all tests - still need to fix

* fixing the reason why the tests was failing, a problem with Typescript trying to decipher the signature of arrays within function arguments that are unionized, updating tslint to ignore those issues

* whoops, messed up header which failed linting
2017-07-23 18:15:25 -07:00
John Reilly
e9569f1a1d Merge pull request #18227 from devrelm/devrelm/textarea-autocomplete
[react] Add missing autoComplete and dirName attributes on textarea
2017-07-23 18:40:04 +01:00
Mike Deverell
c3f41ac81b 'autoComplete' should be lowercase 'autocomplete' 2017-07-22 22:32:57 -04:00
Mike Deverell
801ffc3751 add myself (devrelm) to the contributors list 2017-07-22 22:32:57 -04:00
Mike Deverell
d9420c7ffc add missing textarea attributes 2017-07-22 22:32:57 -04:00
Dimitri Benin
271b8ec0aa [normalize-url] correct typings, add tests, export namespace (#18292) 2017-07-22 12:21:48 -07:00
Nick Graham
4cfe41dc6b [material-ui] Adds linting (#18189)
* Adds props to GridTile

* Adds ts line

* Fixes lint array error

Array type using 'T[]' is forbidden for non-simple types. Use 'Array<T>' instead.

* Fixes lint consecutive blank line error

* Fixes whitespace and semicolon lint errors

* Fixes lint whitespace error

Don't use blank line after '{'

* Fixes lint type error

 Use an interface instead of a type literal

* Fixes lint interface error

 An empty interface is equivalent to `{}`.

* Lint: Replaces var with let

Do not use 'var'

* Lint: Prefer method signature

* Lint: Fixes array type

Array type using 'T[]' is forbidden for non-simple types. Use 'Array<T>'

* Lint: Fixes boolean type

 Don't use 'Boolean' as a type. Avoid using the `Boolean` type. Did you mean `boolean`?

* Lint: Ignore unneccesary exports

* Lint : fix errors

* Lint: adds missing semi-colons

* Lint: Removes spaces

* Lint: Ignore no empty interfaces (We could just delete them)

* Lint: Ignore "dt-header" (could remove patch number)

* Lint: Ignore ban-types so we can use Function

* Remove new props that I added

* Fixes var -> let over replacement
2017-07-22 12:16:13 -07:00
spielc
69c1ab4f36 Add typings for Reactable 0.14. (#18270)
* Add typings for Reactable 0.14. Not complete but the stuff provided by the typings have been tested/used quite extensively by myself during the development of ReactPlayer!

* Add two tests (very simple one and a quite sophisticated one which contains all the components i created typings for...)
2017-07-22 12:04:34 -07:00
Dimitri Benin
42e60e5283 [sparkly] introduce typings (#18291)
* [sparkly] introduce typings

* [sparkly] restrict input type to allow all types from examples but not more than that
2017-07-22 02:22:57 -07:00
Dimitri Benin
c469f9c606 [time-span] introduce typings (#18294)
* [time-span] introduce typings

* [time-span] simplify typings as suggested by review
2017-07-22 02:09:18 -07:00
Andrew Throener
045b2eace8 (paypal-rest-sdk): Initial Type commit (#18296)
Update

Update

Update

Update

Update

remove package.json

Review 1
2017-07-21 20:28:56 -07:00
Mohsen Azimi
cc903d089f Some improvements to webpack configuration (#18118)
* Some improvements to webpack configuration 

`"name"` property schema:

https://github.com/webpack/webpack/blob/master/schemas/webpackOptionsSchema.json#L822-L825

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts

* Update index.d.ts
2017-07-21 19:18:30 -07:00
Jeffery Grajkowski
4d9811d69d Update imap-simple to v3.1.0. (#18301)
* Update imap-simple to v3.1.0.

* Fix compilation for TS 2.0
2017-07-21 19:17:39 -07:00
Dimitri Benin
1de704cfe3 [color-string] introduce typings (#18298) 2017-07-21 19:14:12 -07:00
Dimitri Benin
29fc3e0735 [p-queue] introduce typings (#18303) 2017-07-21 19:01:23 -07:00
HAMPLENI
01764b65da Adding useNativeDriver to EventConfig (#18302)
The AnimatedEvent class's constructor takes in a config parameter of type EventConfig.  This config object is passed to shouldUseNativeDriver, which only returns something other than false if useNativeDriver is ever set.

A case when useNativeDriver is set to true is when Animated.Event is used for an Animated.ScrollView's onScroll prop.

https://facebook.github.io/react-native/blog/2017/02/14/using-native-driver-for-animated.html
2017-07-21 19:00:35 -07:00
AJ Richardson
cad18fc7ad lodash: fix issues with null/undefined parameters (#18120) 2017-07-21 19:00:07 -07:00
Petr Kosikhin
0cdbd80095 [react-router-redux] update to use redux 3.7.2 AnyAction to allow ts 2.4 usage (#18071)
* update to use redux 3.7.2 anyaction pattern allowing ts 2.4 upgrade

* move away from anyaction concept for router action and location change action. use redux reducer generic to desribe routerReducer
2017-07-21 18:13:20 -07:00
Sean Tan
0e72825279 Add support for use_index in pouchdb-find 6.3.4 (#18164) 2017-07-21 10:40:27 -07:00
Ika
e228e20b8b feat(prettier): initial commit (#18280)
* feat(prettier): initial commit

* style(prettier): fix indentation

* fix(prettier): fix typo

* fix(prettier): replace AST with babylon root node

* refactor(prettier): remove unnecessary export
2017-07-21 10:30:34 -07:00
Karol Janyst
ff94dce8df Fix problem with generic form inputs props on Field in redux-form (#18276)
* Refactor some of the definitions for v7

* Add definitions for formValues decorator

* Refactor definitions for Field, Fields, FieldArray, add tests

* Add files to tsconfig

* Fix immutable version of exports

* Clean up the code, change some types

* Add improvement to generic components

* Remove accidentally added files

* Remove conflicting tests file
2017-07-21 10:05:25 -07:00
Maxime Kjaer
d06eee332a Add Rangy Class Applier module to Rangy (#18259)
* Add Rangy Class Applier module type definition

* Make RangyClassApplier extend the options

And allow strings in tagName

* Remove reference path in test file

This should hopefully Make the Build Green Again

* Remove call to unexisting method

This was meant for another PR, and I got things a bit mixed up... (I'll
submit the other PR that adds the missing rangy-core properties when I
have a bit more experience with the whole process of writing type
declarations)

* Incorporate previous contributor's feedback

Thanks for the great feedback 😃
2017-07-21 10:03:22 -07:00
Dimitri Benin
af323c27a4 [ora] introduce typings for v1 (#18233)
* [ora] move old typings to subdir

* [ora] introduce typings for v1

* [ora] change indentation to 4 spaces

* [ora] change indentation to 4 spaces

* [ora] change indentation to 4 spaces

* [ora] make factory parameter optional

* [ora] fix indentation, correct profile url for Christian Rackerseder
2017-07-21 10:02:09 -07:00
coderslagoon
a07f6d8f8a Type definitions for is-ip (#18272) 2017-07-21 10:01:15 -07:00
Marvin Hagemeister
d7a3309b4e Add babel-plugin-syntax-jsx package (#18282) 2017-07-21 09:52:37 -07:00
Douglas Duteil
cfb448f0ac feat(tempy): add typings for tempy (#18246)
* feat(tempy): add typings for tempy

* test(tempy): use promise instead of async/await

* test(tempy): remove use of console.log API
2017-07-21 09:50:48 -07:00