Const
Configure the library
The configuration object
the configuration object
import Reaccoon from "reaccoon";Reaccoon.configure({ hooks: { useAsync: { onError: (error:Error) => { console.error(error); } }, useFilter: { threshold: 0.5 } }}) Copy
import Reaccoon from "reaccoon";Reaccoon.configure({ hooks: { useAsync: { onError: (error:Error) => { console.error(error); } }, useFilter: { threshold: 0.5 } }})
Sets the configuration
Description
Configure the library
Param: config
The configuration object
Returns
the configuration object
Example