diff --git a/package.json b/package.json index 62eb7be..80fe317 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.4.7", "description": "discord-image-generation is a powerfull module that allow you to generate awesome images.", "main": "src/index.js", + "types": "typings/index.d.ts", "scripts": { "test": "node src/index.js" }, diff --git a/typings/index.d.ts b/typings/index.d.ts new file mode 100644 index 0000000..021744f --- /dev/null +++ b/typings/index.d.ts @@ -0,0 +1,85 @@ +declare abstract class ImageGenerator { + abstract getImage(...args: any[]): Promise; +} + +declare class DefaultImageGenerator extends ImageGenerator { + getImage(avatar: string): Promise; +} + +export class Blur extends ImageGenerator { + getImage(avatar: string, level?: number): Promise; +} + +export class Blink extends ImageGenerator { + getImage(avatar: string, avatar2: string, ...avatars: string[]): Promise; +} + +export class Batslap extends ImageGenerator { + getImage(avatar: string, avatar2: string): Promise; +} + +export class Bed extends ImageGenerator { + getImage(avatar: string, avatar2: string): Promise; +} + +export class DoubleStonk extends ImageGenerator { + getImage(avatar: string, avatar2: string): Promise; +} + +export class Kiss extends ImageGenerator { + getImage(avatar: string, avatar2: string): Promise; +} + +export class LisaPresentation extends ImageGenerator { + getImage(text: string): Promise; +} + +export class Podium extends ImageGenerator { + getImage( + avatar: string, + avatar2: string, + avatar3: string, + name: string, + name2: string, + name3: string + ): Promise; +} + +export class Spank extends ImageGenerator { + getImage(avatar: string, avatar2: string): Promise; +} + +export class Wanted extends ImageGenerator { + getImage(avatar: string, currency: string): Promise; +} + +export class Color extends ImageGenerator { + getImage(color: string): Promise; +} + +export class Gay extends DefaultImageGenerator {} +export class Greyscale extends DefaultImageGenerator {} +export class Invert extends DefaultImageGenerator {} +export class Sepia extends DefaultImageGenerator {} +export class Triggered extends DefaultImageGenerator {} +export class Ad extends DefaultImageGenerator {} +export class Affect extends DefaultImageGenerator {} +export class Beautiful extends DefaultImageGenerator {} +export class Bobross extends DefaultImageGenerator {} +export class ConfusedStonk extends DefaultImageGenerator {} +export class Delete extends DefaultImageGenerator {} +export class DiscordBlack extends DefaultImageGenerator {} +export class DiscordBlue extends DefaultImageGenerator {} +export class Facepalm extends DefaultImageGenerator {} +export class Hitler extends DefaultImageGenerator {} +export class Jail extends DefaultImageGenerator {} +export class Karaba extends DefaultImageGenerator {} +export class Mms extends DefaultImageGenerator {} +export class NotStonk extends DefaultImageGenerator {} +export class Poutine extends DefaultImageGenerator {} +export class Rip extends DefaultImageGenerator {} +export class Stonk extends DefaultImageGenerator {} +export class Tatoo extends DefaultImageGenerator {} +export class Thomas extends DefaultImageGenerator {} +export class Trash extends DefaultImageGenerator {} +export class Circle extends DefaultImageGenerator {}