From 0090eeb52b2434cdc022b00a19f4307be3f2c1bf Mon Sep 17 00:00:00 2001 From: MosheF Date: Wed, 6 Jun 2018 12:22:31 +0300 Subject: [PATCH] fix for tests --- types/expo/expo-tests.tsx | 4 ++-- types/expo/index.d.ts | 10 +++------- types/expo/v26/tsconfig.json | 14 +++++++++++--- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/types/expo/expo-tests.tsx b/types/expo/expo-tests.tsx index d5178e2885..b0583b15f3 100644 --- a/types/expo/expo-tests.tsx +++ b/types/expo/expo-tests.tsx @@ -799,7 +799,7 @@ async () => { const areAddedToAlbum: boolean = await MediaLibrary.addAssetsToAlbumAsync([mlAsset, mlAsset1], 'album'); const areDeletedFromAlbum: boolean = await MediaLibrary.removeAssetsFromAlbumAsync([mlAsset, mlAsset1], 'album'); const momuents: MediaLibrary.Album[] = await MediaLibrary.getMomentsAsync(); -} +}; //#endregion // #region Haptic @@ -812,4 +812,4 @@ Haptic.notification(Haptic.NotificationFeedbackType.Success); Haptic.notification(Haptic.NotificationFeedbackType.Error); Haptic.selection(); -// #endregion \ No newline at end of file +// #endregion diff --git a/types/expo/index.d.ts b/types/expo/index.d.ts index ded78b1308..3a7caf50c2 100644 --- a/types/expo/index.d.ts +++ b/types/expo/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for expo 26.0 +// Type definitions for expo 27.0 // Project: https://github.com/expo/expo-sdk // Definitions by: Konstantin Kai // Martynas Kadiša @@ -6,6 +6,7 @@ // Sergio Sánchez // Fernando Helwanger // Umidbek Karimov +// Moshe Feuchtwanger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.6 @@ -2866,9 +2867,7 @@ export namespace Updates { * Requires Permissions.CAMERA_ROLL permissions. */ - export namespace MediaLibrary { - /** * Creates an asset from existing file. The most common use case is to save a picture taken by Camera. */ @@ -3030,8 +3029,6 @@ 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; @@ -3047,5 +3044,4 @@ export namespace Haptic { Error = 'error' } } - -// #endregion \ No newline at end of file +// #endregion diff --git a/types/expo/v26/tsconfig.json b/types/expo/v26/tsconfig.json index 7711f49776..53a55b14f1 100644 --- a/types/expo/v26/tsconfig.json +++ b/types/expo/v26/tsconfig.json @@ -10,10 +10,18 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "baseUrl": "../", + "baseUrl": "../../", "typeRoots": [ - "../" + "../../" ], + "paths": { + "expo": [ + "expo/v26" + ], + "expo/*": [ + "expo/v26/*" + ] + }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true @@ -22,4 +30,4 @@ "index.d.ts", "expo-tests.tsx" ] -} +} \ No newline at end of file