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