Function: isBaleybotConfig()
isBaleybotConfig(
config):config is BaleybotConfig<undefined, Record<string, never>>
Defined in: packages/core/src/utils/type-guards.ts:69
Type guard to check if a value is a Baleybot config object (v2)
Parameters
config
unknown
Value to check
Returns
config is BaleybotConfig<undefined, Record<string, never>>
True if the value is a Baleybot config object
Example
if (isBaleybotConfig(someValue)) {
const name = someValue.name;
}