fix for tests

This commit is contained in:
MosheF
2018-06-06 12:22:31 +03:00
parent 38626f7704
commit 0090eeb52b
3 changed files with 16 additions and 12 deletions
+2 -2
View File
@@ -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
// #endregion
+3 -7
View File
@@ -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 <https://github.com/KonstantinKai>
// Martynas Kadiša <https://github.com/martynaskadisa>
@@ -6,6 +6,7 @@
// Sergio Sánchez <https://github.com/ssanchezmarc>
// Fernando Helwanger <https://github.com/fhelwanger>
// Umidbek Karimov <https://github.com/umidbekkarimov>
// Moshe Feuchtwanger <https://github.com/moshfeu>
// 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
// #endregion
+11 -3
View File
@@ -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"
]
}
}