import { get, set } from "./src-transition-schedule.js";
function durationFunction(id, value) {
  return function() {
    set(this, id).duration = +value.apply(this, arguments);
  };
}
function durationConstant(id, value) {
  return value = +value, function() {
    set(this, id).duration = value;
  };
}
function transition_duration(value) {
  var id = this._id;
  return arguments.length ? this.each((typeof value === "function" ? durationFunction : durationConstant)(id, value)) : get(this.node(), id).duration;
}
export {
  transition_duration as default
};
//# sourceMappingURL=src-transition-duration.js.map
