EmmaRamirez/Clickopolis

View on GitHub
src/actions/action.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
}