tiny-types
Version:
A tiny library that brings Tiny Types to JavaScript and TypeScript
11 lines (10 loc) • 368 B
TypeScript
import { TinyType } from '../../TinyType';
import { MatcherRule } from './MatcherRule';
/**
* @access private
*/
export declare class MatchesEqualTinyType<Output_Type> extends MatcherRule<TinyType, Output_Type> {
private readonly pattern;
constructor(pattern: TinyType, transformation: (v: TinyType) => Output_Type);
matches(value: TinyType): boolean;
}