Skip to content

Commit

Permalink
Killed suppressImplicitAnyIndexErrors with 🔥
Browse files Browse the repository at this point in the history
  • Loading branch information
alex3165 committed Feb 10, 2017
1 parent 2d40152 commit 9bb5f83
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/geojson-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ export interface Props {
fillPaint?: MapboxGL.FillPaint;
}

type Paints = MapboxGL.LinePaint | MapboxGL.SymbolPaint | MapboxGL.CirclePaint | MapboxGL.FillPaint;
type Layouts = MapboxGL.FillLayout | MapboxGL.LineLayout | MapboxGL.CircleLayout | MapboxGL.SymbolLayout;

export interface Context {
map: MapboxGL.Map;
}
Expand Down Expand Up @@ -52,8 +55,8 @@ export default class GeoJSONLayer extends React.Component<Props, void> {
const layerId = `${id}-${type}`;
layerIds.push(layerId);

const paint = this.props[`${type}Paint`] || {};
const layout = this.props[`${type}Layout`] || {};
const paint: Paints = this.props[`${type}Paint`] || {};
const layout: Layouts = this.props[`${type}Layout`] || {};

map.addLayer({
id: layerId,
Expand Down

0 comments on commit 9bb5f83

Please sign in to comment.