UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

23 lines (22 loc) 715 B
import { CompiledFunction } from "../../classes/internal/CompiledFunction"; import { APIFunction, ParamType } from "../../classes/structures/APIFunction"; import Statement from "../core/stmt"; import { Data } from "../../classes/structures/Data"; export default class If extends APIFunction { name: string; description: string; parameters: { name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: null; }[]; usage: string; returns: ParamType; compile: boolean; aliases: never[]; parent: Statement; run(this: CompiledFunction, d: Data, [condition, code]: string[]): Promise<void>; }