UNPKG

tiny-types

Version:

A tiny library that brings Tiny Types to JavaScript and TypeScript

10 lines (9 loc) 295 B
/** * @access private */ export declare abstract class MatcherRule<Input_Type, Output_Type> { private readonly transformation; constructor(transformation: (v: Input_Type) => Output_Type); abstract matches(value: Input_Type): boolean; execute(value: Input_Type): Output_Type; }