From c1947e84b703a22e661b90a2ae88733f99f2d884 Mon Sep 17 00:00:00 2001 From: jero Date: Mon, 7 Oct 2019 11:35:02 +0300 Subject: [PATCH] style(pluckprops): change comment and type --- src/app/shared/utils/pluckProps/pluckProps.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/shared/utils/pluckProps/pluckProps.tsx b/src/app/shared/utils/pluckProps/pluckProps.tsx index 357aaf6a..0edc9071 100644 --- a/src/app/shared/utils/pluckProps/pluckProps.tsx +++ b/src/app/shared/utils/pluckProps/pluckProps.tsx @@ -1,11 +1,11 @@ /** - * @desc: conditionally append properties as they're defined + * @desc: conditionally pluck properties as they're declared */ -type AppendProps = (...args: Array) => (obj: T) => T | Partial; +type PluckProps = (...args: Array) => (obj: T) => T | Partial; // 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,