From 69503c137adb3d5c83c12c3aae8ceb99fb8ed11f Mon Sep 17 00:00:00 2001 From: Tuan Luong Date: Tue, 24 Mar 2020 15:34:43 +0700 Subject: [PATCH] update type definition --- index.d.ts | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/index.d.ts b/index.d.ts index 5e3052d66..0d659ebb7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -413,23 +413,6 @@ export interface CameraProps extends CameraSettings, ViewProps { ) => void; } -export interface CameraStopSettings { - centerCoordinate?: GeoJSON.Position; - heading?: number; - pitch?: number; - bounds?: { - ne: GeoJSON.Position; - sw: GeoJSON.Position; - paddingLeft?: number; - paddingRight?: number; - paddingTop?: number; - paddingBottom?: number; - }; - zoomLevel?: number; - animationDuration?: number; - animationMode?: 'flyTo' | 'easeTo' | 'moveTo'; -} - export interface CameraSettings { centerCoordinate?: GeoJSON.Position; heading?: number; @@ -444,7 +427,8 @@ export interface CameraSettings { }; zoomLevel?: number; animationDuration?: number; - stops?: CameraStopSettings[]; + animationMode?: 'flyTo' | 'easeTo' | 'moveTo'; + stops?: CameraSettings[]; } export interface UserLocationProps {