Skip to content
English

TimestampMs ​

CORE · type · 类型合同

Wall-clock instant in milliseconds since the Unix epoch.

导入 ​

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

其他公开入口:@jangts/agent-core、@jangts/agent-core/types、@jangts/agent-core/structs。

定义 ​

ts
type TimestampMs = number;

类型使用 ​

在调用方读取该合同 ​

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

// 在使用点保留原合同,TS 与 JS 具有相同的运行行为。
function inspect(value: TimestampMs) {
  return value;
}
js
/** @param {import('@jangts/agent-core').TimestampMs} value */
function inspect(value) {
  return value;
}

接口参考、使用示例与开发指南。