D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
etb1lp46s9ed
/
wabot.whatzi.online
/
node_modules
/
jimp
/
types
/
ts3.1
/
Filename :
index.d.ts
back
Copy
/** * While there is nothing in these typings that prevent it from running in TS 2.8 even, * due to the complexity of the typings anything lower than TS 3.1 will only see * Jimp as `any`. In order to test the strict versions of these types in our typing * test suite, the version has been bumped to 3.1 */ import { Jimp as JimpType, Bitmap, RGB, RGBA, UnionToIntersection, GetPluginVal, GetPluginConst, GetPluginEncoders, GetPluginDecoders, JimpConstructors, } from "@jimp/core"; import typeFn from "@jimp/types"; import pluginFn from "@jimp/plugins"; type Types = ReturnType<typeof typeFn>; type Plugins = ReturnType<typeof pluginFn>; type IntersectedPluginTypes = UnionToIntersection< GetPluginVal<Types> | GetPluginVal<Plugins> >; type IntersectedPluginConsts = UnionToIntersection< GetPluginConst<Types> | GetPluginConst<Plugins> >; type IntersectedPluginEncoders = UnionToIntersection< GetPluginEncoders<Types> | GetPluginEncoders<Plugins> >; type IntersectedPluginDecoders = UnionToIntersection< GetPluginDecoders<Types> | GetPluginDecoders<Plugins> >; type Jimp = JimpType & IntersectedPluginTypes; declare const Jimp: JimpConstructors & IntersectedPluginConsts & { prototype: Jimp; encoders: IntersectedPluginEncoders; decoders: IntersectedPluginDecoders; }; export = Jimp;