UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

32 lines (31 loc) 992 B
import { CompiledFunction } from "../../classes/internal/CompiledFunction"; import { APIFunction, ParamType } from "../../classes/structures/APIFunction"; import $createCanvas from "./createCanvas"; import { Data } from "../../classes/structures/Data"; export default class DrawText extends APIFunction { name: string; description: string; parameters: ({ name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: null; allowedValues?: undefined; } | { name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: string; allowedValues: string[]; })[]; usage: string; returns: ParamType; aliases: never[]; compile: boolean; parent: $createCanvas; run(this: CompiledFunction, d: Data, [text, x, y, width, height, align, vAlign]: string[]): Promise<void>; }