From 48058a1a69e8d838e8e29f4e10ed57cd4213e3fa Mon Sep 17 00:00:00 2001 From: MosheF Date: Thu, 7 Jun 2018 11:57:06 +0300 Subject: [PATCH] Fix optinal etc. --- types/expo/expo-tests.tsx | 12 ++++++------ types/expo/index.d.ts | 24 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/types/expo/expo-tests.tsx b/types/expo/expo-tests.tsx index b0583b15f3..d9b7edcb5d 100644 --- a/types/expo/expo-tests.tsx +++ b/types/expo/expo-tests.tsx @@ -803,13 +803,13 @@ async () => { //#endregion // #region Haptic -Haptic.impact(Haptic.ImpactFeedbackStyle.Heavy); -Haptic.impact(Haptic.ImpactFeedbackStyle.Light); -Haptic.impact(Haptic.ImpactFeedbackStyle.Medium); +Haptic.impact(Haptic.ImpactStyles.Heavy); +Haptic.impact(Haptic.ImpactStyles.Light); +Haptic.impact(Haptic.ImpactStyles.Medium); -Haptic.notification(Haptic.NotificationFeedbackType.Error); -Haptic.notification(Haptic.NotificationFeedbackType.Success); -Haptic.notification(Haptic.NotificationFeedbackType.Error); +Haptic.notification(Haptic.NotificationType.Error); +Haptic.notification(Haptic.NotificationType.Success); +Haptic.notification(Haptic.NotificationType.Error); Haptic.selection(); // #endregion diff --git a/types/expo/index.d.ts b/types/expo/index.d.ts index 3a7caf50c2..e556e5255a 100644 --- a/types/expo/index.d.ts +++ b/types/expo/index.d.ts @@ -2943,11 +2943,11 @@ export namespace MediaLibrary { // region Asset interface AssetAndroid { - albumId: string; + albumId?: string; } interface AssetIos { - mediaSubtypes: MediaType[]; + mediaSubtypes?: MediaType[]; // * orientation: number; // * @@ -2965,11 +2965,11 @@ export namespace MediaLibrary { modificationTime: number; duration: number; // * - localUri: string; + localUri?: string; // * - location: object; + location?: Location.LocationProps; // * - exif: object; + exif?: object; } /** @@ -2979,15 +2979,15 @@ export namespace MediaLibrary { // #region Album interface AlbumIos { - type: string; + type?: string; // * startTime: number; // * endTime: number; // * - approximateLocation: Location.LocationProps; + approximateLocation?: Location.LocationProps; // * - locationNames: string[]; + locationNames?: string[]; } /** @@ -3029,16 +3029,16 @@ export namespace Haptic { * Used to let a user know when a selection change has been registered */ function selection(): void; - function notification(type: NotificationFeedbackType): void; - function impact(style: ImpactFeedbackStyle): void; + function notification(notificationType?: NotificationType): void; + function impact(impactStyles?: ImpactStyles): void; - enum ImpactFeedbackStyle { + enum ImpactStyles { Light = 'light', Medium = 'medium', Heavy = 'heavy' } - enum NotificationFeedbackType { + enum NotificationType { Success = 'success', Warning = 'warning', Error = 'error'