Commit Graph

134 Commits

Author SHA1 Message Date
Eloy Durán
f86465f644 [react-native] Get rid of Function type use. 2017-03-21 22:57:50 +01:00
Eloy Durán
bf70718239 [react-native] Make linter green and enable. 2017-03-21 22:57:50 +01:00
Eloy Durán
3f692c1f11 [react-native] Volunteer as maintainer. 2017-03-21 22:57:50 +01:00
Eloy Durán
cc0510058f [react-native] Remove extra namespace. 2017-03-21 22:57:50 +01:00
Eloy Durán
998925bac2 [react-native] Add XMLHttpRequest and original object globals. 2017-03-21 22:48:17 +01:00
Eloy Durán
517cae79d3 [react-native] Add findNodeHandle declaration 2017-03-21 22:48:17 +01:00
Eloy Durán
a60dca20d8 [react-native] Move out of React namespace into its own.
This changed in ReactNative 0.25
2017-03-21 22:48:17 +01:00
Yui
2a2cbc29de Merge pull request #15128 from victor95pc/master
@types/react-native New prop for DrawerLayoutAndroidStatic
2017-03-19 22:36:04 -07:00
cailenmusselman
2d308d6181 Android TextView now supports the native includeFontPadding property
And it's exposed by react-native as a style property.

Reference: https://facebook.github.io/react-native/docs/text.html
2017-03-17 12:11:47 -06:00
Victor Palomo de Castro
a15660c3c2 Change drawerPosition type so it can match with DrawerPosition 2017-03-15 21:08:41 -03:00
Yui
c5094e44a3 Merge pull request #14843 from ligaz/patch-16
[react-native] SubViewRenderer can return null
2017-03-13 18:58:28 -07:00
Victor Palomo de Castro
fcc78898d3 Added positions prop for DrawerLayoutAndroidStatic 2017-03-11 23:56:50 -03:00
Libin Lu
3a054c482a Update index.d.ts (#15114) 2017-03-11 11:08:04 -08:00
Libin Lu
489156cadf [react-native] add dismiss() for Keyboard (#14665)
* add some art definition

* react-native add dismiss function for Keyboard

* add dismiss() for Keyboard react native
2017-03-10 16:23:23 -08:00
Libin Lu
750ea4bca7 make some KeyboardAvoidingViewProps optional (#14667) 2017-03-10 16:22:52 -08:00
Libin Lu
1c4816c61c Platform.Version is always available (#14802) 2017-03-10 15:50:42 -08:00
Andy
51b64c3c15 Remove unnecessary references in test files. (#14900) 2017-03-10 07:46:20 -08:00
Anurag Rao
3c07598678 Moving __DEV__ to global namespace (#14916) 2017-03-09 22:59:11 -08:00
Stefan Dobrev
fe0272f200 [react-native] Update TextInput onChange (#14933)
Add missing properties for `TextInput`'s `onChange` callback. You can find more information about them in this source code: 481f560f64/Libraries/Text/RCTTextView.m (L464-L469)
2017-03-09 22:47:11 -08:00
Fedor Nezhivoi
3350914cba update ScrollView typings 2017-03-02 13:24:40 +02:00
Fedor Nezhivoi
3aa6f05b60 update react-native version to 0.42 and use new react-native jsx target 2017-03-02 13:24:39 +02:00
Stefan Dobrev
77af13e3b4 [react-native] SubViewRenderer can return null
SubViewRenderer could potentially return `null` along with JSX element.
2017-02-24 11:04:40 +02:00
Zhengbo Li
f7786338ee Merge pull request #14310 from wcandillon/patch-2
Add missing onContentSizeChange property
2017-02-21 14:42:23 -08:00
Danny Cochran
ac75426107 Update React-Native typings for NavigationCardStack
The NavigationCardStack recently got a cardStyleInterpolator prop:

https://github.com/facebook/react-native/pull/11082
2017-02-13 20:46:26 -08:00
William Candillon
dc3fc280b1 Add missing onContentSizeChange property 2017-01-28 00:45:15 +01:00
Eric Anderson
9b53298395 Support Pick<> on setState now that TS 2.1 is out (#13155)
* Support Partial<> on setState now that TS 2.1 is out

* Update readme to reflect setState being typed correctly

* Switch setState to Pick

* Restore cloneELement portion of readme

* Use Pick<> | S for setState due to cast issue

* state and props should be readonly

* Fix nit + document why we

* Add typescript compiler header

* Update to properly order headers

* Update readme to reflect 2.1.5 fixing stPick

* Update readme now that 2.1.5 is out

* All that depend on react now require 2.1

* Fix definition that fails due to readonly state
2017-01-23 12:36:53 -08:00
Danny Cochran
a5a560b3e1 Update webViewStatic to include postMessage API (#14151) 2017-01-20 13:28:33 -08:00
Lxxyx
33fb4236d6 fix(webview): webview android useraget props missing (#14140) 2017-01-20 11:00:52 -08:00
Andy
ae4fe7b6de Use "lib" in tsconfigs instead of "target". (#13968)
* Use "lib" in tsconfigs instead of "target".

Only add "dom" to libraries that need it. This is determined by a script, so many libraries that have "dom" maybe should not.

* Update new-package and readme

* Add back "target" where necessary
2017-01-18 07:51:51 -08:00
Stefan Dobrev
8a6e4ba426 [react-native] Fix NavigationBarRouteMapper (#13858)
`NavigationBarRouteMapper` properties return type should be the same as the one of `Component.render()` method: `JSX.Element | null`
2017-01-17 22:06:46 -08:00
Mohamed Hegazy
fc8f08bf52 React native promise (#13952)
* Remove duplicate Promise definiton from react-native

* Update AsyncStorageStatic definitions to match implementation

* Review comments

* fix return type
2017-01-13 10:49:38 -08:00
Andy
76a710cc94 Rename test files to be consistent (#13882) 2017-01-10 06:33:06 -08:00
Andy
2f71174636 Restructure to support old versions (#13811)
* Restructure to support old versions

* Fix tests
2017-01-06 12:36:57 -08:00
Josh Hargreaves
e8088fd229 Add missing onMomentum* properties to ScrollView. (#13732)
Added missing definitions for onMomentumScrollBegin & onMomentumScrollEnd.
2017-01-04 09:07:44 -08:00
Jesse Sessler
a0da312165 Fix signature for onSelectionChange (#13685) 2017-01-02 15:15:20 -08:00
Andy Hanson
2e869dbdc0 Merge branch 'types-2.0' into merge_28dec 2016-12-28 12:38:06 -08:00
Jesse Sessler
4898b6ebba EasingFunction for easing key in NavigationTransitionSpec type (#13491) 2016-12-27 20:03:32 -05:00
Andy
00d7a667b0 Remove author from "react-native"; replace with "Needs A Maintainer" (#13401) 2016-12-27 19:02:33 -05:00
Horiuchi_H
da07d30842 Merge pull request #13328 from cailenmusselman/patch-5
react-native - ModalProperties should be optional
2016-12-27 17:03:45 +09:00
Jason Healy
fce4624320 Adding union types to transform style to fix type issues (#13295) 2016-12-25 05:08:19 +09:00
Danny Cochran
383fca5ed7 add scroll handlers to ScrollView (#13237) 2016-12-24 19:42:14 +09:00
Andy
a4bd9fa3c1 Add "noImplicitThis" to all tsconfig.json (#13446)
* Add "noImplicitThis" to all tsconfig.json

* Use `"noImplicitThis": false` on packages with broken tests.
2016-12-19 14:11:46 -08:00
cailenmusselman
31e4220dde ModalProperties should be optional
These properties should be optional.

https://github.com/facebook/react-native/blob/master/Libraries/Modal/Modal.js#L113-L124

i.e. they are PropTypes.func / PropTypes.arrayOf not PropTypes.func.required / PropTypes.arrayOf().required
2016-12-13 18:15:28 -06:00
Andy
c968762595 Merge 'master' to 'types-2.0' one last time (#13277)
* Added missing nconf.required(keys) and Provider.required(keys) methods.

* update to 4.7.0, add querycursor.map() and schema.loadClass()

* add error callback for schema.post()

* Added playsInline property as introduced in React 15.3.2

* Add definitions for redux-localstorage and main enhancers (#12580)

* Add definitions for redux-localstorage

* Add definitions for redux-localstorage-filter enhancer

* Add definitions for redux-localstorage-debounce enhancer

* csurf.d.ts relying on CookieOptions from express

It seems express no longer exports `CookieOptions`, we need to import `express-serve-static-core` instead.

* Added height property to IDialogOptions

* versionKey type

* kendo-ui: mark toString() params as optional (#13164)

These function parameters are optional according to the upstream
docs, e.g.
  http://docs.telerik.com/kendo-ui/api/javascript/geometry/matrix#methods-toString

* Ensure that zoneAbbr and zoneName are expected type (string).

* Update moment-timezone.d.ts

* Fix syntax error in interact.d.ts

A parameter name was missing making TypeScript compiler fail.

* adding type for move to fs-extra

* fixing signature of sinon/alwaysReturned based on the http://sinonjs.org/docs/#sinonspy

* increasing version number

* returning back the version number to the origin number

* reversing changes in fs-extra

* Request that PRs have meaningful titles

* Improvement to existing nouislider type definition. (#12033)

* updated nouislider version and added a lot of tests out of the documentation

* corrected intentation

* corrected untyped variables, issue raised by Travis

* incorporated feedback on pull request

* #13037 (#13039)

* #13037

* pointToLayer first argument type fixed
GeoJSON.Point to GeoJSON.Feature<GeoJSON.Point>

* Missing cc in sendgrid packate (#13063)

The sendgrid package was missing the `cc` field, and the `bcc` field had a too generic type (`any` instead of `string[]`, as used on the `setCcs` and `setBccs` below.

* Fixes #12414 (#13076)

* Fixes #12414

* Make applicationServerKey optional

* added ariaLabelledBy and ariaDescribedBy to IModalSettings (#13004)

* Ceymard leaflet (#13007)

* replaced all overrides of LatLng by a single use of LatLngExpression when appropriate

* Changed Point, PointTuple overrides to use PointExpression instead

* Changet use of LatLngBounds and Bounds in general to use the Expression variant instead of having several overrides

* add ElasticSeach 5.x API function for deleteByQuery (#13014)

* add ElasticSeach 5.x API function for deleteByQuery

* use searchParams for deleteByQuery, as theses resemble the documentation.

* add DeleteByQueryParams parameter type.

* add deleteByQuery to tests.

* Make `less` render options optional (#13078)

* Added semver

* Updated gravity definition. (#13088)

* Full Redis client options (#13108)

* Added missing return type to on() methods. (#13082)

* Update react-native.0.29.d.ts (#13118)

drawerPosition is of type `number`
Android DrawerConsts.DrawerPosition.Left is equivalent to DrawerLayoutAndroid.positions.Left
Android DrawerConsts.DrawerPosition.Right is equivalent to DrawerLayoutAndroid.positions.Right

* Upgrade to match braintree-web 3.6.1 (#13098)

* Update to match braintree-web version 3.3.0

* Upgrade to match Braintree-web v3.5.0

* upgrade to match braintree-web 3.6.1

add US bank class

* Fix missing parameters from svg append (#13119)

* Add parameter declarations to append()

* Made insertFirst parameter optional

* Correct missing ‘auto’ option of GridList’s cellHeight (#13094)

* Add new Angular 1.5.9 methods to $compileProvider  (#13096)

* Add new Angular 1.5.9 methods to $compileProvider

Add new methods available in Angular 1.5.9: onChangesTtl(), commentDirectivesEnabled() and cssClassDirectivesEnabled()

* Add JSDoc to Angular 1.59 new methods of $compileProvider

JSDoc for onChangesTtl(), commentDirectivesEnabled() and cssClassDirectivesEnabled() methods.

* Expand $compileProvider JSDoc

Urls added to JSDoc of Angular 1.5.9 new methods .

* Changed type of injectedScript property to string (#13120)

The injectedScript property should take string value with script code, not the bool flag as in current version

* Use unions for openlayers string enums (#13134)

* Update google.maps.MapPane interface (#13122)

* Removing myself (AlStar01) as definition author from angular-material.d.ts (#13125)

* Clarify that notNeededPackages.json is just for packages formerly on DefinitelyTyped (#13156)

* Update Parsimmon typings (#13146)

* Update AmCharts.d.ts (#13170)

* knex: add MySqlConnectionConfig, tests (#13161)

* knex: add MySqlConnectionConfig, tests

* knex: add types for MySqlConnectionConfig queryFormat params

* Add note in readme about tsjs-lib-generator (#13210)

* Remove redux-localstorage packages; added by #13115 instead
2016-12-12 11:00:28 -08:00
Paul van Brenk
a783e03bb8 Merge pull request #12527 from rockmacaca/types-2.0
Updated react-native navigation typings
2016-11-30 16:12:36 -08:00
Danny Cochran
4330cf1bb9 update react typings to 0.37
adds the onMessage propType for webView added in 0.37

@bgrieder - not sure how to best check for other potential new types between 0.34 and 0.37, but this is one I'm sure is missing:
https://facebook.github.io/react-native/docs/webview.html#onmessage
2016-11-23 06:47:28 -08:00
Kyle Herock
1da57736e2 Updated react-native navigation typings
- NavigationSceneRenderer should be a function
- Both NavigationCard and NavigationCardStack now depend on NavigationSceneRenderer
- Honor several places where React propTypes declares props as optional
- Added the optional `title` prop to NavigationRoute
- Added typings for NavigationHeaderTitle
- Added typings for Button
2016-11-14 19:32:41 -05:00
Kanchalai Tanglertsampan
1200f753d6 Merge branch 'master' into types-2.0
# Conflicts:
#	.gitignore
#	ajv/ajv.d.ts
#	angular-material/angular-material.d.ts
#	angular-protractor/angular-protractor.d.ts
#	angularjs/angular-tests.ts
#	angularjs/angular.d.ts
#	aws-sdk/aws-sdk.d.ts
#	electron-devtools-installer/electron-devtools-installer-tests.ts
#	electron-json-storage/electron-json-storage-tests.ts
#	electron-notifications/electron-notifications.d.ts
#	electron-notify/electron-notify.d.ts
#	electron-window-state/electron-window-state.d.ts
#	electron/electron-prebuilt.d.ts
#	enzyme/enzyme.d.ts
#	eventemitter3/eventemitter3-tests.ts
#	eventemitter3/eventemitter3.d.ts
#	graphql/graphql.d.ts
#	highcharts/highcharts.d.ts
#	immutable/immutable.d.ts
#	inquirer/inquirer.d.ts
#	jasmine/jasmine.d.ts
#	joi/joi.d.ts
#	jquery.dataTables/jquery.dataTables-tests.ts
#	jquery.dataTables/jquery.dataTables.d.ts
#	kafka-node/kafka-node.d.ts
#	kefir/kefir.d.ts
#	kendo-ui/kendo-ui.d.ts
#	koa/koa.d.ts
#	leaflet/leaflet.d.ts
#	lodash/lodash.d.ts
#	mapbox-gl/mapbox-gl.d.ts
#	material-ui/material-ui.d.ts
#	menubar/menubar.d.ts
#	mongodb/mongodb.d.ts
#	needle/needle-tests.ts
#	needle/needle.d.ts
#	noble/noble.d.ts
#	node/node.d.ts
#	pegjs/pegjs.d.ts
#	pixi.js/pixi.js.d.ts
#	polymer/polymer.d.ts
#	quill/quill-tests.ts
#	quill/quill.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-fa/react-fa-tests.tsx
#	react-fa/react-fa.d.ts
#	react-native/react-native.d.ts
#	react-select/react-select.d.ts
#	react/react.d.ts
#	threejs/three-vrcontrols.d.ts
#	threejs/three-vreffect.d.ts
#	toastr/toastr.d.ts
#	validator/validator.d.ts
#	webpack/webpack.d.ts
#	winston/winston.d.ts
2016-11-09 17:20:41 -08:00
hktonylee
07765863bf added fetch function in react-native (#12408) 2016-11-02 22:18:52 +09:00
Chris Fisher
b424d28ab1 Update react-native.d.ts (#12050)
* Update react-native.d.ts

Added additional props to NavigationHeaderProps.

* Update react-native.d.ts

Fixed indentation.

* Added more NavigationHeaderProps.
Also updated type for NavigationHeaderStatic.Title.
2016-10-25 23:58:26 +09:00