1+ declare module "sharp" {
2+
13/**
24 * @class Sharp
35 *
@@ -202,7 +204,7 @@ declare function clone(): Sharp;
202204 * @param {Function } [callback] - called with the arguments `(err, metadata)`
203205 * @returns {Promise<Object>|Sharp }
204206 */
205- declare function metadata ( callback ?: ( ( ) => any ) ) : ( Promise . < Object > | Sharp ) ;
207+ declare function metadata ( callback ?: ( ( ) => any ) ) : ( Promise < Object > | Sharp ) ;
206208
207209/**
208210 * Do not process input images where the number of pixels (width * height) exceeds this limit.
@@ -792,7 +794,7 @@ declare function bandbool(boolOp: String): Sharp;
792794 * @returns {Promise<Object> } - when no callback is provided
793795 * @throws {Error } Invalid parameters
794796 */
795- declare function toFile ( fileOut : String , callback ?: ( ( ) => any ) ) : Promise . < Object > ;
797+ declare function toFile ( fileOut : String , callback ?: ( ( ) => any ) ) : Promise < Object > ;
796798
797799/**
798800 * Write output to a Buffer.
@@ -806,7 +808,7 @@ declare function toFile(fileOut: String, callback?: (() => any)): Promise.<Objec
806808 * @param {Function } [callback]
807809 * @returns {Promise<Buffer> } - when no callback is provided
808810 */
809- declare function toBuffer ( callback ?: ( ( ) => any ) ) : Promise . < Buffer > ;
811+ declare function toBuffer ( callback ?: ( ( ) => any ) ) : Promise < Buffer > ;
810812
811813/**
812814 * Include all metadata (EXIF, XMP, IPTC) from the input image in the output image.
@@ -1017,3 +1019,5 @@ declare function counters(): Object;
10171019 */
10181020declare function simd ( simd ?: Boolean ) : Boolean ;
10191021
1022+ }
1023+
0 commit comments