-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not transcode images if they meet the size thresholds
Co-authored-by: Josh Perez <60019601+josh-signal@users.noreply.github.com>
- Loading branch information
1 parent
347bb4a
commit b0dc901
Showing
6 changed files
with
89 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/node_modules/@types/sharp/index.d.ts b/node_modules/@types/sharp/index.d.ts | ||
index 3210332..4808af0 100755 | ||
--- a/node_modules/@types/sharp/index.d.ts | ||
+++ b/node_modules/@types/sharp/index.d.ts | ||
@@ -23,7 +23,21 @@ import { Duplex } from "stream"; | ||
* @returns A sharp instance that can be used to chain operations | ||
*/ | ||
declare function sharp(options?: sharp.SharpOptions): sharp.Sharp; | ||
-declare function sharp(input?: string | Buffer, options?: sharp.SharpOptions): sharp.Sharp; | ||
+declare function sharp( | ||
+ input?: | ||
+ | Buffer | ||
+ | Uint8Array | ||
+ | Uint8ClampedArray | ||
+ | Int8Array | ||
+ | Uint16Array | ||
+ | Int16Array | ||
+ | Uint32Array | ||
+ | Int32Array | ||
+ | Float32Array | ||
+ | Float64Array | ||
+ | string, | ||
+ options?: sharp.SharpOptions | ||
+): sharp.Sharp; | ||
|
||
declare namespace sharp { | ||
/** Object containing nested boolean values representing the available input and output formats/methods. */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters