UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

28 lines (27 loc) 825 B
import { CompiledFunction } from "../../classes/internal/CompiledFunction"; import { APIFunction, ParamType } from "../../classes/structures/APIFunction"; import { Data } from "../../classes/structures/Data"; export default class Scope extends APIFunction { name: string; description: string; parameters: ({ name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: null; } | { name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: string; })[]; usage: string; returns: ParamType; aliases: string[]; compile: boolean; run(this: CompiledFunction, d: Data, [code, create]: string[]): Promise<string>; }