code: function (type, name) {
    if (metaDictByName[type][name]) {
      return metaDictByName[type][name];
    } else if (name.endsWith('Type')) {
      return metaDictByName[type][name.slice(0, -4)];
    }
    return undefined;
  }
docs: For use when already inside a promise