diff options
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; |