Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
types(back-end): make types for shared manager state
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 12, 2022
1 parent c9fa45d commit ff2dc16
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions common_back-end/types/dependent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
import { Transaction } from "sequelize"

import CacheClient from "$!/helpers/cache_client"

export interface TransactionObject { transaction?: Transaction }

export interface LockedTransactionObject extends TransactionObject { lock?: boolean }

export interface TransactionManagerInterface {
transactionObject: TransactionObject
lockedTransactionObject: LockedTransactionObject
}

export interface SharedManagerState {
client: CacheClient,
transaction: TransactionManagerInterface
}

0 comments on commit ff2dc16

Please sign in to comment.