Skip to content

Commit 5e14967

Browse files
Added type declaration.
1 parent 8367fae commit 5e14967

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

index.d.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
declare function sharpOptimizeImages(params: SharpOptimizeImagesInputTypes): internal.Transform
2+
3+
interface SharpOptimizeImagesInputTypes {
4+
gif: SharpOptimizeImagesTypesParams
5+
png: SharpOptimizeImagesTypesParams
6+
jpg: SharpOptimizeImagesTypesParams
7+
jpeg: SharpOptimizeImagesTypesParams
8+
webp: SharpOptimizeImagesTypesParams
9+
avif: SharpOptimizeImagesTypesParams
10+
tiff: SharpOptimizeImagesTypesParams
11+
heif: SharpOptimizeImagesTypesParams
12+
}
13+
14+
interface SharpOptimizeImagesTypesParams {
15+
quality?: number
16+
lossless?: boolean
17+
progressive?: boolean
18+
chromaSubsampling?: string
19+
mozjpeg?: boolean
20+
effort?: number
21+
reuse?: boolean
22+
delay?: number | Array.<number>
23+
force?: boolean
24+
}
25+
26+
export {
27+
sharpOptimizeImages,
28+
}

0 commit comments

Comments
 (0)