Skip to main content

supportsAtomicOperations

@webda/models


Function: supportsAtomicOperations()

supportsAtomicOperations<T>(repo): repo is CoreRepository<T> & AtomicOperations<T>

Defined in: packages/models/src/repositories/repository.ts:424

Type guard to check if repository supports atomic operations

Type Parameters​

T​

T extends ModelClass<Storable<any, any>>

Parameters​

repo​

CoreRepository<T>

the repository to check

Returns​

repo is CoreRepository<T> & AtomicOperations<T>

true if atomic operations are supported