code: public void overwriteDeclaredType(StaticScope scope, String name, JSType type) {
      checkState(isDeclaredForScope(scope, name), "missing name %s", name);
      reregister(scope, type, name);
    }
docs: Overrides a declared global type name. Throws an exception if this type name hasn't been
  declared yet.