UNPKG

objectypes

Version:

A type-safe library to transform and validate objects

3 lines (2 loc) 193 B
import { Hashable, ClassConstructor } from './types'; export declare function mapObject<T, K>(targetKlass: ClassConstructor<Hashable & T>, objKlass: ClassConstructor<K>, obj: Hashable & K): T;