tiny-types
Version:
A tiny library that brings Tiny Types to JavaScript and TypeScript
8 lines (7 loc) • 360 B
TypeScript
import { PatternMatcher } from './PatternMatcher';
/**
* @access private
*/
export declare class IdentityMatcher<Input_Type, Output_Type> extends PatternMatcher<Input_Type, Input_Type, Input_Type, Output_Type> {
when(pattern: Input_Type, transformation: (v: Input_Type) => Output_Type): PatternMatcher<Input_Type, Input_Type, Input_Type, Output_Type>;
}