master
function pluck<T, K extends keyof T>(o: T, names: K[]): T[K][] { return names.map(n => o[n]); } export interface Action<T> { type: T; [payload: string]: any; error?: boolean; meta?: any; }