TimestampMs
CORE · type · Type contract
Wall-clock instant in milliseconds since the Unix epoch.
Import
ts
import type { TimestampMs } from '@jangts/agent-core';1
js
/** @typedef {import('@jangts/agent-core').TimestampMs} TimestampMs */1
Other public entry points:@jangts/agent-core, @jangts/agent-core/types, @jangts/agent-core/structs.
Definition
ts
type TimestampMs = number;1
Using the type
Read the contract at the call site
ts
import type { TimestampMs } from '@jangts/agent-core';
// Keep the original contract at the call site; TS and JS share the same runtime behavior.
function inspect(value: TimestampMs) {
return value;
}1
2
3
4
5
6
2
3
4
5
6
js
/** @param {import('@jangts/agent-core').TimestampMs} value */
function inspect(value) {
return value;
}1
2
3
4
2
3
4