@averagehelper/corde
Version:
A simple library for Discord bot tests. (Republished fork to demonstrate a bugfix)
14 lines (13 loc) • 357 B
TypeScript
import ConfigOptions from "../types";
/**
* Check if configs are valid. Throws a exception
* if there is no parameter or if any required property is
* missing.
*
* @version 1.0
*
* @param configs Config parameter that will be validated
*
* @throws Error if any config is invalid.
*/
export declare function validate(configs: ConfigOptions): void;