UNPKG

easy-api.ts

Version:

A powerful library to create your own API with ease.

44 lines (43 loc) 1.3 kB
import { APIFunction, ParamType } from "../../classes/structures/APIFunction"; import { CompiledFunction } from "../../classes/internal/CompiledFunction"; import { Data } from "../../classes/structures/Data"; /** * Represents a key-value structure * for converting times to milliseconds. * @type {Record<number, (arg: number) => number>} */ export declare const convertionConstants: Record<number, (a: number) => number>; /** * The convertion names. */ export declare const convertionNames: string[]; /** * The executor of "$unparseDigitalFormat". * @param this - The thisArg of this function. * @param d - The runtime data. * @param param2 - The parameter of the function. * @returns {string} */ declare function run(this: CompiledFunction, d: Data, [text]: string[]): Promise<number>; /** * The class representing the "$unparseDigitalFormat" function. */ export default class UnparseDigitalFormat extends APIFunction { name: string; description: string; parameters: { name: string; description: string; type: ParamType; required: boolean; rest: boolean; defaultValue: null; }[]; returns: ParamType; compile: boolean; aliases: never[]; usage: string; example: string; run: typeof run; } export {};