Skip to content

Commit

Permalink
Fix type definition error (#2607)
Browse files Browse the repository at this point in the history
Fix below errors:

- 'setCamera', which lacks return-type annotation, implicitly has an 'any' return type.
- 'animateCamera', which lacks return-type annotation, implicitly has an 'any' return type.
  • Loading branch information
unosk authored and rborn committed Dec 3, 2018
1 parent e84b35c commit 5d17d39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Expand Up @@ -226,8 +226,8 @@ declare module "react-native-maps" {

export default class MapView extends React.Component<MapViewProps, any> {
getCamera(): Promise<Camera>;
setCamera(camera: Partial<Camera>);
animateCamera(camera: Partial<Camera>, opts?: {duration?: number});
setCamera(camera: Partial<Camera>): void;
animateCamera(camera: Partial<Camera>, opts?: {duration?: number}): void;
animateToNavigation(location: LatLng, bearing: number, angle: number, duration?: number): void;
animateToRegion(region: Region, duration?: number): void;
animateToCoordinate(latLng: LatLng, duration?: number): void;
Expand Down

0 comments on commit 5d17d39

Please sign in to comment.