clear = function(target) {
    for (const name in target) {
      if (typeof target[name] === 'function' && target[name]['signature']) {
        delete target[name];
      }
    }
  }
Removes all methods added by importApi() from a target class.
@param {!Function|!Object} target The class to remove from.