UNPKG
mutative
Version:
latest (1.3.0)
1.3.0
1.2.0
1.1.0
1.0.11
1.0.10
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.0
0.5.0
0.4.2
0.4.1
0.4.0
0.3.2
0.3.1
0.3.0
0.2.2
0.2.1
0.2.0
0.1.0
0.0.1
A JavaScript library for efficient immutable updates
mutative.js.org
unadlib/mutative
mutative
/
dist
/
draftify.d.ts
3 lines
(2 loc)
•
265 B
TypeScript
View Raw
1
2
3
import
{
Options
,
PatchesOptions
,
Result
}
from
'./interface'
;
export
declare
function
draftify<T
extends
object
, O
extends
PatchesOptions
=
false
, F
extends
boolean
=
false
>(
baseState
: T,
options
:
Options
<O, F>): [T,
(
returnedValue
: [T] | []
) =>
Result
<T, O, F>];