mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
fix for tests
This commit is contained in:
@@ -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
|
||||
|
||||
Vendored
+3
-7
@@ -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
|
||||
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user