Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 82x | import { Duration } from "dayjs/plugin/duration";
import { Duration as DurationPb } from "google-protobuf/google/protobuf/duration_pb";
 
export function duration2pb(duration: Duration) {
  const d = new DurationPb();
  d.setSeconds(duration.asSeconds());
  d.setNanos(duration.milliseconds() * 1000);
  return d;
}
export type { Duration };
  |