UNPKG

confinode

Version:

Node application configuration reader

14 lines (13 loc) 512 B
import { LeafItemDescription } from '../ConfigDescription'; /** * Description of a boolean item. Boolean parser tries also to convert some numbers and strings. */ export default class BooleanDescription extends LeafItemDescription<boolean> { /** * Create the description of a boolean item. * * @param defaultValue - The value to use for inexistent value. */ constructor(defaultValue: boolean); protected parseValue(value: unknown, fileName: string, keyName: string): boolean; }