scottohara/loot

View on GitHub
src/schedules/filters/estimate.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export default class EstimateFilter extends Function {
    public constructor() {
        super();

        return (value: string, isEstimate: boolean): string =>
            `${isEstimate ? "~" : ""}${value}`;
    }

    public static factory(): EstimateFilter {
        return new EstimateFilter();
    }
}

EstimateFilter.factory.$inject = [];