Skip to content
中文

DurationMs ​

CORE · type · Type contract

Elapsed time in milliseconds; never an absolute instant.

Import ​

ts
import type { DurationMs } from '@jangts/agent-core';
js
/** @typedef {import('@jangts/agent-core').DurationMs} DurationMs */

Other public entry points:@jangts/agent-core, @jangts/agent-core/types, @jangts/agent-core/structs.

Definition ​

ts
type DurationMs = number;

Using the type ​

Read the contract at the call site ​

ts
import type { DurationMs } from '@jangts/agent-core';

// Keep the original contract at the call site; TS and JS share the same runtime behavior.
function inspect(value: DurationMs) {
  return value;
}
js
/** @param {import('@jangts/agent-core').DurationMs} value */
function inspect(value) {
  return value;
}

API reference, usage examples and developer guides.