From 9117de1d45eadd7ba4d9853d545b2cacd5f134e1 Mon Sep 17 00:00:00 2001 From: Lioness100 Date: Mon, 12 Apr 2021 10:25:19 -0400 Subject: [PATCH] Added typings --- package.json | 1 + typings/index.d.ts | 85 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 typings/index.d.ts 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 {}