Skip to content

Commit

Permalink
build: v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaldcwl committed Apr 12, 2022
1 parent 64bde38 commit 7f8b783
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
9 changes: 6 additions & 3 deletions dist/browser-image-compression.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// Type definitions for browser-image-compression 1.0
// Type definitions for browser-image-compression 2.0
// Project: https://github.com/Donaldcwl/browser-image-compression
// Definitions by: Donald <https://github.com/Donaldcwl> & Jamie Haywood <https://github.com/jamiehaywood>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface Options {
/** @default Number.POSITIVE_INFINITY */
maxSizeMB?: number;
/** @default undefined */
maxWidthOrHeight?: number;
/** @default false */
/** @default true */
useWebWorker?: boolean;
/** @default 10 */
maxIteration?: number;
Expand All @@ -20,6 +19,10 @@ interface Options {
fileType?: string;
/** @default 1.0 */
initialQuality?: number;
/** @default false */
alwaysKeepResolution?: boolean;
/** @default undefined */
signal?: AbortSignal;
}

declare function imageCompression(image: File, options: Options): Promise<File>;
Expand Down
4 changes: 2 additions & 2 deletions dist/browser-image-compression.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser-image-compression.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/browser-image-compression.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/browser-image-compression.mjs.map

Large diffs are not rendered by default.

0 comments on commit 7f8b783

Please sign in to comment.