Skip to content

Commit

Permalink
style(pluckprops): change comment and type
Browse files Browse the repository at this point in the history
  • Loading branch information
aneurysmjs committed Oct 7, 2019
1 parent c7e1201 commit c1947e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/shared/utils/pluckProps/pluckProps.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/**
* @desc: conditionally append properties as they're defined
* @desc: conditionally pluck properties as they're declared
*/

type AppendProps = <T>(...args: Array<keyof T>) => (obj: T) => T | Partial<T>;
type PluckProps = <T>(...args: Array<keyof T>) => (obj: T) => T | Partial<T>;

// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
const pluckProps: AppendProps = (...args) => obj =>
const pluckProps: PluckProps = (...args) => obj =>
args.reduce(
(acc, arg) => ({
...acc,
Expand Down

0 comments on commit c1947e8

Please sign in to comment.