Skip to content

Commit

Permalink
fix: Fix and export component types
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch committed May 23, 2022
1 parent 4a40d43 commit 089e347
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/CoordinateInfo/CoordinateInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import './CoordinateInfo.less';

const format = new OlFormatGML2();

interface CoordinateInfoProps {
export interface CoordinateInfoProps {
/**
* List of (WMS) layers that should be queried.
*/
Expand Down Expand Up @@ -55,9 +55,11 @@ interface CoordinateInfoProps {
map: OlMap;
}

interface CoordinateInfoState {
export interface CoordinateInfoState {
clickCoordinate: OlCoordinate | null;
features: any;
features: {
[layerName: string]: OlFeature[];
};
loading: boolean;
}

Expand Down Expand Up @@ -94,7 +96,7 @@ export class CoordinateInfo extends React.Component<CoordinateInfoProps, Coordin

this.state = {
clickCoordinate: null,
features: [],
features: {},
loading: false
};

Expand Down

0 comments on commit 089e347

Please sign in to comment.