Skip to content

Commit bd3d237

Browse files
unoskrborn
authored andcommitted
Fix type definition error (react-native-maps#2607)
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.
1 parent b110f8f commit bd3d237

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ declare module "react-native-maps" {
226226

227227
export default class MapView extends React.Component<MapViewProps, any> {
228228
getCamera(): Promise<Camera>;
229-
setCamera(camera: Partial<Camera>);
230-
animateCamera(camera: Partial<Camera>, opts?: {duration?: number});
229+
setCamera(camera: Partial<Camera>): void;
230+
animateCamera(camera: Partial<Camera>, opts?: {duration?: number}): void;
231231
animateToNavigation(location: LatLng, bearing: number, angle: number, duration?: number): void;
232232
animateToRegion(region: Region, duration?: number): void;
233233
animateToCoordinate(latLng: LatLng, duration?: number): void;

0 commit comments

Comments
 (0)