Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@jimp/plugins/index.d.ts
1126 views
1
import blit from '@jimp/plugin-blit';
2
import blur from '@jimp/plugin-blur';
3
import circle from '@jimp/plugin-circle';
4
import color from '@jimp/plugin-color';
5
import contain from '@jimp/plugin-contain';
6
import cover from '@jimp/plugin-cover';
7
import crop from '@jimp/plugin-crop';
8
import displace from '@jimp/plugin-displace';
9
import dither from '@jimp/plugin-dither';
10
import fisheye from '@jimp/plugin-fisheye';
11
import flip from '@jimp/plugin-flip';
12
import gaussian from '@jimp/plugin-gaussian';
13
import invert from '@jimp/plugin-invert';
14
import mask from '@jimp/plugin-mask';
15
import normalize from '@jimp/plugin-normalize';
16
import print from '@jimp/plugin-print';
17
import resize from '@jimp/plugin-resize';
18
import rotate from '@jimp/plugin-rotate';
19
import scale from '@jimp/plugin-scale';
20
import shadow from '@jimp/plugin-shadow';
21
import threshold from '@jimp/plugin-threshold';
22
23
type BlitRet = ReturnType<typeof blit>;
24
type BlurRet = ReturnType<typeof blur>;
25
type CircleRet = ReturnType<typeof circle>;
26
type ColorRet = ReturnType<typeof color>;
27
type ContainRet = ReturnType<typeof contain>;
28
type CoverRet = ReturnType<typeof cover>;
29
type CropRet = ReturnType<typeof crop>;
30
type DisplaceRet = ReturnType<typeof displace>;
31
type DitherRet = ReturnType<typeof dither>;
32
type FlipRet = ReturnType<typeof flip>;
33
type FisheyeRet = ReturnType<typeof fisheye>;
34
type GaussianRet = ReturnType<typeof gaussian>;
35
type InvertRet = ReturnType<typeof invert>;
36
type MaskRet = ReturnType<typeof mask>;
37
type NormalizeRet = ReturnType<typeof normalize>;
38
type PrintRet = ReturnType<typeof print>;
39
type ResizeRet = ReturnType<typeof resize>;
40
type RotateRet = ReturnType<typeof rotate>;
41
type ScaleRet = ReturnType<typeof scale>;
42
type ShadowRet = ReturnType<typeof shadow>;
43
type ThresholdRet = ReturnType<typeof threshold>;
44
45
/**
46
* This is made union and not intersection to avoid issues with
47
* `IllformedPlugin` and `WellFormedPlugin` when using typings with Jimp
48
* generic
49
*
50
* In reality, this should be an intersection but our type data isn't
51
* clever enough to figure out what's a class and what's not/etc
52
*/
53
type Plugins =
54
| BlitRet
55
| BlurRet
56
| CircleRet
57
| ColorRet
58
| ContainRet
59
| CoverRet
60
| CropRet
61
| DisplaceRet
62
| DitherRet
63
| FlipRet
64
| FisheyeRet
65
| GaussianRet
66
| InvertRet
67
| MaskRet
68
| NormalizeRet
69
| PrintRet
70
| ResizeRet
71
| RotateRet
72
| ScaleRet
73
| ShadowRet
74
| ThresholdRet;
75
76
export default function(): Plugins;
77
78