From c60a1a68bbec02783a67e2fac33d416dd52cbb96 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Thu, 27 Jun 2024 16:41:58 -0400 Subject: [PATCH] chore: fix lint issues --- src/object/invert.ts | 4 +--- src/object/shake.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/object/invert.ts b/src/object/invert.ts index fe5e7851..33f57439 100644 --- a/src/object/invert.ts +++ b/src/object/invert.ts @@ -5,9 +5,7 @@ export function invert< TKey extends string | number | symbol, TValue extends string | number | symbol ->( - obj: Record -): Record { +>(obj: Record): Record { if (!obj) return {} as Record const keys = Object.keys(obj) as TKey[] return keys.reduce((acc, key) => { diff --git a/src/object/shake.ts b/src/object/shake.ts index 947dbfac..e417acb0 100644 --- a/src/object/shake.ts +++ b/src/object/shake.ts @@ -4,7 +4,7 @@ */ export function shake( obj: T, - filter: (value: T[keyof T]) => boolean = (value) => value === undefined + filter: (value: T[keyof T]) => boolean = value => value === undefined ): T { if (!obj) return {} as T const keys = Object.keys(obj) as (keyof T)[]