diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-07 09:34:06 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-07 09:34:28 -0300 |
commit | 2b76e32d5714fc410085b5a5ab5c1f4333190fe6 (patch) | |
tree | f890abb9b01c240561d29d489b345b0350b60e7a /packages/taler-util/src/http-client | |
parent | b059cf4b16663ef2db70a2c2d7af0a6ba5ce2688 (diff) | |
download | wallet-core-2b76e32d5714fc410085b5a5ab5c1f4333190fe6.tar.xz |
time component
Diffstat (limited to 'packages/taler-util/src/http-client')
-rw-r--r-- | packages/taler-util/src/http-client/types.ts | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/packages/taler-util/src/http-client/types.ts b/packages/taler-util/src/http-client/types.ts index e9266e6a3..e7c7eb4c9 100644 --- a/packages/taler-util/src/http-client/types.ts +++ b/packages/taler-util/src/http-client/types.ts @@ -17,7 +17,7 @@ import { import { PaytoString, codecForPaytoString } from "../payto.js"; import { AmountString } from "../taler-types.js"; import { TalerActionString, codecForTalerActionString } from "../taleruri.js"; -import { codecForTimestamp } from "../time.js"; +import { TalerProtocolDuration, TalerProtocolTimestamp, codecForTimestamp } from "../time.js"; export type UserAndPassword = { username: string; @@ -163,19 +163,9 @@ type ImageDataUrl = string; type WadId = string; -interface Timestamp { - // Seconds since epoch, or the special - // value "never" to represent an event that will - // never happen. - t_s: number | "never"; -} +type Timestamp = TalerProtocolTimestamp -interface RelativeTime { - // Duration in microseconds or "forever" - // to represent an infinite duration. Numeric - // values are capped at 2^53 - 1 inclusive. - d_us: number | "forever"; -} +type RelativeTime = TalerProtocolDuration export interface LoginToken { token: AccessToken; |