function addFilters(nunjucks, filters) {
  Object.getOwnPropertyNames(filters).forEach((key) => {
    const value = filters[key];
    if (!(value instanceof Function)) return;

    if (isAsyncFunction(value)) {
      nunjucks.addFilter(key, value, true);
    } else {
      nunjucks.addFilter(key, value);
    }
  });
}
Add filter functions to Nunjucks environment. Only owned functions from the module are added.
@deprecated This method is deprecated. For more details, see the release notes: https://github.com/asyncapi/generator/releases/tag/%40asyncapi%2Fgenerator%402.6.0
@private
@param {Object} nunjucks Nunjucks environment.
@param {Object} filters Module with functions.