UNPKG
smob
Version:
alpha (1.3.0-alpha.2)
latest (1.6.2)
1.6.2
1.6.1
1.6.0
1.5.0
1.4.1
1.4.0
1.3.0
1.3.0-alpha.2
1.3.0-alpha.1
1.2.0
1.1.1
1.1.0
1.0.0
0.1.0
0.0.7
0.0.6
0.0.5
0.0.3
0.0.2
0.0.1
Zero dependency library to safe merge objects.
github.com/Tada5hi/smob
Tada5hi/smob
smob
/
dist
/
presets.d.ts
9 lines
(8 loc)
•
281 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
type
{
MergerResult
}
from
'./type'
;
/** * Assign source attributes to a target object. * *
@param
target
*
@param
sources
*/
export
declare
function
assign<A
extends
Record
<
string
,
any
>, B
extends
Record
<
string
,
any
>[]>(
target
: A, ...
sources
: B): A &
MergerResult
<B>;