diff options
Diffstat (limited to 'packages/taler-wallet-core/src/pending-types.ts')
-rw-r--r-- | packages/taler-wallet-core/src/pending-types.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/pending-types.ts b/packages/taler-wallet-core/src/pending-types.ts index 23f9ae21f..e85f0d460 100644 --- a/packages/taler-wallet-core/src/pending-types.ts +++ b/packages/taler-wallet-core/src/pending-types.ts @@ -191,6 +191,9 @@ export interface PendingDepositTask { depositGroupId: string; } +declare const __taskId: unique symbol; +export type TaskId = string & { [__taskId]: true }; + /** * Fields that are present in every pending operation. */ @@ -203,7 +206,7 @@ export interface PendingTaskInfoCommon { /** * Unique identifier for the pending task. */ - id: string; + id: TaskId; /** * Set to true if the operation indicates that something is really in progress, |