easy-api.ts
Version:
A powerful library to create your own API with ease.
21 lines (20 loc) • 659 B
TypeScript
import { CompiledFunction } from "../../classes/internal/CompiledFunction";
import { APIFunction, ParamType } from "../../classes/structures/APIFunction";
import { Data } from "../../classes/structures/Data";
export default class ArrayForEach extends APIFunction {
name: string;
description: string;
parameters: {
name: string;
description: string;
type: ParamType;
required: boolean;
rest: boolean;
defaultValue: null;
}[];
usage: string;
returns: ParamType;
aliases: never[];
compile: boolean;
run(this: CompiledFunction, d: Data, [name, code]: string[]): Promise<void>;
}