mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Set type of compress to number
This commit is contained in:
@@ -376,7 +376,7 @@ async () => {
|
||||
const result = await ImageManipulator.manipulate('url', {
|
||||
rotate: 90
|
||||
}, {
|
||||
compress: 0.5
|
||||
compress: 0.75
|
||||
});
|
||||
|
||||
result.height;
|
||||
|
||||
Vendored
+2
-1
@@ -1523,7 +1523,8 @@ export namespace ImageManipulator {
|
||||
|
||||
interface SaveOptions {
|
||||
base64?: boolean;
|
||||
compress?: FloatFromZeroToOne;
|
||||
/** A value in range `0` - `1` specifying compression level of the result image. `1` means no compression and `0` the highest compression. */
|
||||
compress?: number;
|
||||
format?: 'jpeg' | 'png';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user