UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

40 lines (39 loc) 1.17 kB
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 Font 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?: 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, [size, family, style]: string[]): Promise<void>; }