UNPKG

corde

Version:

A simple library for Discord bot tests

15 lines (14 loc) 386 B
/** * @internal */ export declare class Validator<TParameters extends any[]> { private _validators; constructor(); add(fn: (...params: TParameters) => boolean): void; /** * Check if some properties are valid givin some validations. * @param params Parameters of the function * @returns If the parameters are valid. */ isValid(...params: TParameters): boolean; }