Skip to content
1 min read · 57 words

Interface: MillisTimestamp

Defined in: src/batteries/context/thrift/contracts.ts:94

Anything with a .toMillis() — the structural shape the battery needs from a timestamp field (a core DateTime satisfies this; so does a plain { toMillis: () => number } test double).

Methods

toMillis()

ts
toMillis(): number;

Defined in: src/batteries/context/thrift/contracts.ts:96

The instant this timestamp represents, as Unix epoch milliseconds.

Returns

number