UNPKG

objectypes

Version:

A type-safe library to transform and validate objects

9 lines (8 loc) 198 B
export type ReductionFn<T> = (obj: any) => T; export interface Reducer<T> { reduce: ReductionFn<T>; } export interface ReductionMetadata<T> { propertyKey: string; reducer: Reducer<T>; }