mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 08:17:05 +00:00
added expo/ImageManipulator.manipulateAsync
This commit is contained in:
@@ -413,6 +413,21 @@ async () => {
|
||||
result.width;
|
||||
};
|
||||
|
||||
async () => {
|
||||
const result = await ImageManipulator.manipulateAsync('url', [
|
||||
{ rotate: 360 },
|
||||
{ resize: { width: 300 } },
|
||||
{ resize: { height: 300 } },
|
||||
{ resize: { height: 300, width: 300 } },
|
||||
], {
|
||||
compress: 0.75
|
||||
});
|
||||
|
||||
result.height;
|
||||
result.uri;
|
||||
result.width;
|
||||
};
|
||||
|
||||
FaceDetector.Constants.Mode.fast;
|
||||
FaceDetector.Constants.Mode.accurate;
|
||||
FaceDetector.Constants.Landmarks.all;
|
||||
|
||||
Vendored
+3
@@ -11,6 +11,7 @@
|
||||
// Tina Roh <https://github.com/tinaroh>
|
||||
// Nathan Phillip Brink <https://github.com/binki>
|
||||
// Martin Olsson <https://github.com/mo>
|
||||
// Levan Basharuli <https://github.com/levansuper>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -1559,6 +1560,8 @@ export namespace ImageManipulator {
|
||||
}
|
||||
|
||||
function manipulate(uri: string, actions: Action[], saveOptions?: SaveOptions): Promise<ImageResult>;
|
||||
|
||||
function manipulateAsync(uri: string, actions: Action[], saveOptions?: SaveOptions): Promise<ImageResult>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user