diff --git a/.changeset/honest-parents-fetch.md b/.changeset/honest-parents-fetch.md new file mode 100644 index 0000000..f37f9bf --- /dev/null +++ b/.changeset/honest-parents-fetch.md @@ -0,0 +1,5 @@ +--- +"@giraugh/tools": patch +--- + +Fix type of TOBJ in mergeObjectValuesBy being unuseable with interfaces diff --git a/lib/objects/mergeObjectValuesBy.ts b/lib/objects/mergeObjectValuesBy.ts index 3c61ecf..fdf5a10 100644 --- a/lib/objects/mergeObjectValuesBy.ts +++ b/lib/objects/mergeObjectValuesBy.ts @@ -9,7 +9,7 @@ */ export const mergeObjectValuesBy = < TKeys extends PropertyKey, - TObj extends Record + TObj extends Record >( objects: TObj[], mergeFn: (a: TObj[TKeys], b: TObj[TKeys]) => TObj[TKeys]