UNPKG
uinix-fp-merge
Version:
latest (1.0.1)
1.0.1
1.0.0
uinix fp merge utility
github.com/uinix-js/uinix-fp/tree/main
uinix-js/uinix-fp
uinix-fp-merge
/
index.d.ts
9 lines
(8 loc)
•
221 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
/** * Deepmerge from https://github.com/TehShrike/deepmerge. * *
@template
X, Y *
@param
{Partial<X>} x *
@returns
{(y: Partial<Y>) => X & Y} */
export
function
merge
<
X
,
Y
>(
x: Partial<X>
): (
y: Partial<Y>
) =>
X & Y;