mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 01:00:05 +00:00
Merge pull request #28037 from fhelwanger/expo-image-manipulator-optional-props
[expo] ImageManipulator height or width optional
This commit is contained in:
@@ -374,9 +374,12 @@ async () => {
|
||||
};
|
||||
|
||||
async () => {
|
||||
const result = await ImageManipulator.manipulate('url', [{
|
||||
rotate: 90
|
||||
}], {
|
||||
const result = await ImageManipulator.manipulate('url', [
|
||||
{ rotate: 90 },
|
||||
{ resize: { width: 300 } },
|
||||
{ resize: { height: 300 } },
|
||||
{ resize: { height: 300, width: 300 } },
|
||||
], {
|
||||
compress: 0.75
|
||||
});
|
||||
|
||||
|
||||
2
types/expo/index.d.ts
vendored
2
types/expo/index.d.ts
vendored
@@ -1519,7 +1519,7 @@ export namespace ImageManipulator {
|
||||
type Action = Resize | Rotate | Flip | Crop;
|
||||
|
||||
interface Resize {
|
||||
resize: { width: number, height: number };
|
||||
resize: { width?: number, height?: number };
|
||||
}
|
||||
|
||||
interface Rotate {
|
||||
|
||||
Reference in New Issue
Block a user