import { Convert, text } from '@rsdk/common'; import type { PropertyParser } from '../../types'; export class BoolParser implements PropertyParser { type(): string { return 'boolean'; } description(): string { return text` Extracts boolean value. Any boolean value or strings 'true' and 'false' will pass. `; } parse(value: unknown): boolean { return Convert.boolean(value); } }