Commit Graph

60 Commits

Author SHA1 Message Date
Alejandro Sánchez
b5eaa88e9e Updated leaflet typings to match v1.2.x and to use newer typescript features 2017-08-24 17:18:50 -06:00
Andy
5d6c651a1a Apply stricter lint rules (#19063) 2017-08-17 14:53:41 -07:00
Tanguy Krotoff
ea9de8a518 Replace React.Component<(.*), (any|void|\{\}|null)> by React.Component<$1>
+ many manual adjustments
2017-06-19 13:35:50 +02:00
Yui T
465f8b7798 Add default parameter 2017-06-11 19:36:57 -07:00
Yui T
3417d93fdc add more missing constraint 2017-06-10 20:51:35 -07:00
Yui T
c818a5296e add missing constraint 2017-06-10 20:48:12 -07:00
Yui T
4e4d4d3879 constraint type parameter in Map and Pane 2017-06-10 20:33:46 -07:00
Yui T
0ee8e83ae3 Address PR 2017-06-06 21:32:28 -07:00
Kanchalai Tanglertsampan
a5e5a19585 Address PR: feedback 2017-06-06 10:27:15 -07:00
Kanchalai Tanglertsampan
4072eb596b Merge branch 'master' into update_react-leaflet 2017-06-06 09:46:23 -07:00
Nathan Shively-Sanders
163f4438df Fix weak type errors (#16845)
* Fix first round of weak type errors

Done through griddle-react

* 95% done with weak type fixes

* Fix last couple of weak type errors

* Remove some lint from mithril tests

* mithril's Lifecycle is not a weak type any more

Restore the Lifecycle constraints in the rest of the definitions.

* Fix react-redux tests after #16652 broke them

* Remove package-lock.json
2017-06-04 22:03:03 -07:00
Yui
25dfb2fb8c Update header of the index.d.ts file 2017-05-02 13:13:30 -07:00
Kanchalai Tanglertsampan
b596befb5a Address PR: add type parameter 2017-05-02 10:29:10 -07:00
Kanchalai Tanglertsampan
42a15de2eb Address PR : add type parameter 2017-05-02 10:27:11 -07:00
Kanchalai Tanglertsampan
9d6c0c12f4 Fixing breaking form 2.3 by using default type paramters instead 2017-05-01 11:56:54 -07:00
David Schneider
11cd4d0189 Linting: strict-export-declare-modifiers 2017-04-18 14:53:22 -07:00
David Schneider
e8c5eb91fb Linting: semicolon 2017-04-18 13:48:40 -07:00
David Schneider
6eaedc42c8 Linting: no-empty-interface 2017-04-18 13:48:24 -07:00
David Schneider
d35c0b0228 Linting: semicolon 2017-04-18 13:47:59 -07:00
David Schneider
2d7dd94f3c Linting: strict-export-declare-modifiers 2017-04-18 13:47:38 -07:00
David Schneider
b410661e5b Add comment to explain the type parameters. 2017-04-17 16:05:22 -07:00
David Schneider
48af84a937 Revise component props based on Leaflet API documentation. 2017-04-17 13:14:24 -07:00
David Schneider
61ee96d1f9 MapComponentProps does not extend React.HTMLProps.
There's no need for the react-leaflet components to support HTMLProps, and in some cases they conflict with Leaflet-defined props.
2017-04-17 13:12:51 -07:00
David Schneider
8632683f65 Merge remote-tracking branch 'upstream/master'
* upstream/master: (111 commits)
  node: disable dt-header lint rule for now (#15864)
  Fix additional lint errors from the new dtslint (#15865)
  Use new strict-export-declare-modifiers lint rule (#15844)
  changed the version to match when fullWidth was added to FlatButton
  Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
  Added types for algebra.js (#15763)
  Add starter `tslint.json` files for node (#15834)
  loopback: Add ignores for failing lint rules (#15832)
  react-icons: Check in generate script (#15712)
  fix header formatting (#15802)
  [react-native] - StyleSheet.create parameter properly constrained Added test based on output of react-native init command
  Update estree tests with nullable values
  Mark fields nullable
  upped version number
  switched whitespace to spaces to be consistent with the rest of the file
  add fullWidth to FlatButtonProps
  html-weback-plugin: Update version
  bugsnag-js: Provides its own types  (#15621)
  hapi: use native promise types for async/await compatibility (#15568)
  maquette: Provides its own types (#15647)
  ...

# Conflicts:
#	types/react-leaflet/index.d.ts
2017-04-14 11:23:46 -07:00
Andy
e50f8878a5 Use new strict-export-declare-modifiers lint rule (#15844) 2017-04-14 08:20:12 -07:00
Andy
bbc61fbf93 Extend "dtslint/dt.json" directly instead of "../tslint.json". (#15822)
* Extend "dtslint/dt.json" directly instead of "../tslint.json".

* Convert more "../tslint.json" to "dtslint/dt.json"

* no-redundant-modifiers -> strict-export-declare-modifiers
2017-04-14 08:04:05 -07:00
David Schneider
79224322d1 Update tests. 2017-04-13 16:28:43 -07:00
David Schneider
128c156c94 Reorder definitions to match class hierarchy in the docs.
https://github.com/PaulLeCam/react-leaflet/blob/master/docs/Extending.md
2017-04-13 16:25:27 -07:00
David Schneider
a9eef39bd9 Update ZoomControl, ZoomControlProps. 2017-04-13 16:18:34 -07:00
David Schneider
79f55df43b Update ScaleControl, ScaleControlProps. 2017-04-13 16:18:08 -07:00
David Schneider
093e20bbfd Update MapControl, MapControlProps. 2017-04-13 16:17:40 -07:00
David Schneider
ae20f8052f Update LayersControl, LayersControlProps. 2017-04-13 16:16:42 -07:00
David Schneider
1fdc8689ac Update AttributionControl, AttributionControlProps. 2017-04-13 16:15:49 -07:00
David Schneider
782c4cd738 Update GeoJSON, GeoJSONProps. 2017-04-13 16:15:08 -07:00
David Schneider
1615295f1e Update FeatureGroup, FeatureGroupProps. 2017-04-13 16:14:02 -07:00
David Schneider
42f58c8d91 Update LayerGroup, LayerGroupProps. 2017-04-13 16:13:15 -07:00
David Schneider
9357b51da8 Update Rectangle, RectangleProps. 2017-04-13 16:12:14 -07:00
David Schneider
de7f8ef988 Update Polygon, PolygonProps. 2017-04-13 16:11:48 -07:00
David Schneider
550704d750 Update Polyline, PolylineProps. 2017-04-13 16:11:23 -07:00
David Schneider
ccc25ed739 Update CircleMarker, CircleMarkerProps. 2017-04-13 16:10:48 -07:00
David Schneider
5d598642b5 Update Circle, CircleProps. 2017-04-13 16:10:17 -07:00
David Schneider
4db5f12ed3 Update PathProps, add Path abstract class. 2017-04-13 16:09:49 -07:00
David Schneider
6de8bba105 Update WMSTileLayer, WMSTileLayerProps. 2017-04-13 16:08:48 -07:00
David Schneider
9f6d8d7b72 Update ImageOverlay, ImageOverlayProps. 2017-04-13 16:08:15 -07:00
David Schneider
07daf65a07 Update TileLayer, TileLayerProps. 2017-04-13 16:07:37 -07:00
David Schneider
0e712b5649 Update GridLayer, GridLayerProps. 2017-04-13 16:07:07 -07:00
David Schneider
5de40f30e9 Update Tooltip, TooltipProps. 2017-04-13 16:05:49 -07:00
David Schneider
cdd1a01245 Update Popup, PopupProps. 2017-04-13 16:05:16 -07:00
David Schneider
534efa73b6 Update Marker, MarkerProps. 2017-04-13 16:04:18 -07:00
David Schneider
d145ccc603 Add MapLayer, MapLayerProps, LayerContainer. 2017-04-13 16:02:06 -07:00