Config options file (backend/WeivData/config.js) used for getting configs of WeivData, it's optional and not required so you don't have to define the function but you must create the config.js file.

interface ConfigOptions {
    config: (() => WeivDataConfig);
}

Properties

Properties

config: (() => WeivDataConfig)

config function which should be exported inside backend/WeivData/config.js file, is exporting the config object of WeivData to play with settings of the library.

// Enable console logging (example)
export const config = () => {
return {
logs: true
}
}

async is not allowed for config.