Profectus / features/reset / createReset
Function: createReset() ​
createReset<
T
>(optionsFunc
):object
&Omit
<Omit
<T
,"thingsToReset"
|"onReset"
>, keyofResetOptions
> &object
Lazily creates a reset with the given options.
Type Parameters ​
• T extends ResetOptions
Parameters ​
optionsFunc ​
() => T
Reset options.
Returns ​
object
& Omit
<Omit
<T
, "thingsToReset"
| "onReset"
>, keyof ResetOptions
> & object