UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

19 lines 528 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MatchesIdentical = void 0; const MatcherRule_1 = require("./MatcherRule"); /** * @access private */ class MatchesIdentical extends MatcherRule_1.MatcherRule { pattern; constructor(pattern, transformation) { super(transformation); this.pattern = pattern; } matches(value) { return value === this.pattern; } } exports.MatchesIdentical = MatchesIdentical; //# sourceMappingURL=MatchesIdentical.js.map