UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

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