import { MatchResult, } from './MatchResult' import { Matcher, } from './Matcher' export class BooleanMatcher implements Matcher, void> { constructor(private value: T) { this.match = this.match.bind(this) } match(): MatchResult { if (this.value) { return { matched: true, result: true, } as MatchResult } return { matched: false, } } }