@@ -90,7 +90,7 @@ export interface JimpPlugin {
90
90
}
91
91
92
92
type UnionToIntersection < U > = ( U extends any ? ( k : U ) => void : never ) extends (
93
- k : infer I ,
93
+ k : infer I
94
94
) => void
95
95
? I
96
96
: never ;
@@ -272,8 +272,8 @@ export function createJimp<
272
272
if ( Array . isArray ( bitmap . data ) ) {
273
273
data = Buffer . concat (
274
274
bitmap . data . map ( ( hex ) =>
275
- Buffer . from ( hex . toString ( 16 ) . padStart ( 8 , "0" ) , "hex" ) ,
276
- ) ,
275
+ Buffer . from ( hex . toString ( 16 ) . padStart ( 8 , "0" ) , "hex" )
276
+ )
277
277
) ;
278
278
}
279
279
@@ -316,7 +316,7 @@ export function createJimp<
316
316
}
317
317
318
318
const image = new CustomJimp (
319
- await format . decode ( actualBuffer ) ,
319
+ await format . decode ( actualBuffer )
320
320
) as InstanceType < typeof CustomJimp > & ExtraMethodMap ;
321
321
322
322
attemptExifRotate ( image , actualBuffer ) ;
@@ -386,6 +386,7 @@ export function createJimp<
386
386
let outputImage : Jimp ;
387
387
388
388
if ( format . hasAlpha ) {
389
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
389
390
outputImage = this ;
390
391
} else {
391
392
outputImage = new CustomJimp ( {
@@ -456,7 +457,7 @@ export function createJimp<
456
457
const mimeType = mime . getType ( path ) ;
457
458
await writeFile (
458
459
path ,
459
- await this . getBuffer ( mimeType as SupportedMimeTypes , options ) ,
460
+ await this . getBuffer ( mimeType as SupportedMimeTypes , options )
460
461
) ;
461
462
}
462
463
@@ -657,7 +658,7 @@ export function createJimp<
657
658
mode ?: BlendMode ;
658
659
opacitySource ?: number ;
659
660
opacityDest ?: number ;
660
- } = { } ,
661
+ } = { }
661
662
) {
662
663
return composite ( this , src , x , y , options ) ;
663
664
}
@@ -687,14 +688,14 @@ export function createJimp<
687
688
y : number ,
688
689
w : number ,
689
690
h : number ,
690
- cb : ( x : number , y : number , idx : number ) => any ,
691
+ cb : ( x : number , y : number , idx : number ) => any
691
692
) : this;
692
693
scan (
693
694
x : number | ( ( x : number , y : number , idx : number ) => any ) ,
694
695
y ?: number ,
695
696
w ?: number ,
696
697
h ?: number ,
697
- f ?: ( x : number , y : number , idx : number ) => any ,
698
+ f ?: ( x : number , y : number , idx : number ) => any
698
699
) : this {
699
700
return scan ( this , x as any , y as any , w as any , h as any , f as any ) ;
700
701
}
0 commit comments