UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

22 lines (21 loc) 697 B
import type { CompiledFunction } from "../../classes/internal/CompiledFunction"; import { APIFunction, ParamType } from "../../classes/structures/APIFunction"; import type { Data } from "../../classes/structures/Data"; export default class ToUnique extends APIFunction { name: string; description: string; parameters: { name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: null; }[]; usage: string; example: string; returns: ParamType; aliases: never[]; compile: boolean; run(this: CompiledFunction, d: Data, [separator, elements]: string[]): Promise<string>; }