Variable defaultConst

default: {
    configure: ((value: DeepPartial<Config>) => Config);
} = ...

Type declaration

  • configure: ((value: DeepPartial<Config>) => Config)

    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
    }
    }
    })
      • (value): Config
      • Parameters

        • value: DeepPartial<Config>

        Returns Config

        Sets the configuration