UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

10 lines (9 loc) 341 B
import { MatcherRule } from './MatcherRule'; /** * @access private */ export declare class MatchesIdentical<Input_Type, Output_Type> extends MatcherRule<Input_Type, Output_Type> { private readonly pattern; constructor(pattern: Input_Type, transformation: (v: Input_Type) => Output_Type); matches(value: Input_Type): boolean; }