-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
36 lines (34 loc) · 877 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
export enum imageFormats {
GIF = 'gif',
JPEG = 'jpeg',
PNG = 'png',
WEBP = 'webp'
}
interface UrlBuilderOptions {
allowUpscale?: boolean,
backgroundColor?: string,
borderRadius?: number,
borderWidth?: number,
circularMask?: boolean,
color?: string,
crop?: boolean,
cropWithDifferentFocus?: boolean,
disableWebP?: boolean,
height?: number,
flipHorizontally?: boolean,
flipVertically?: boolean,
forceDownload?: boolean,
forceLossyCompression?: boolean,
forceScaling?: boolean,
imageFormat?: imageFormats,
losslessCompression?: boolean,
lossyCompressionLevel?: number,
lossyCompressionVersion?: 0 | 1 | 2 | 3,
padding?: number,
paddingColor?: string,
rotate?: 90 | 180 | 270,
square?: number,
upscaling?: boolean,
width?: number
}
export default function urlBuilder(baseUrl: string, options: UrlBuilderOptions): string;