-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(interfaces):
IAbstractMangoRepositoryBase
- Loading branch information
1 parent
073401f
commit 9b976a6
Showing
6 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import type { DUID } from '@/types' | ||
import type { ObjectPlain, ObjectUnknown } from '@flex-development/tutils' | ||
import type { IAbstractMangoFinderBase } from './abstract-mango-finder-base.interface' | ||
import type { MangoCacheRepo } from './mango-cache-repo.interface' | ||
import type { MangoRepoOptions } from './mango-repo-options.interface' | ||
import type { IMangoValidator } from './mango-validator.interface' | ||
|
||
/** | ||
* @file Interface - IAbstractMangoRepositoryBase | ||
* @module interfaces/AbstractMangoRepositoryBase | ||
*/ | ||
|
||
/** | ||
* Base `AbstractMangoRepository` class interface. | ||
* | ||
* Used to define properties of `MangoRepository`, `MangoRepositoryAsync`, | ||
* and possible derivatives. | ||
* | ||
* @template E - Entity | ||
* @template U - Name of entity uid field | ||
* | ||
* @extends IAbstractMangoFinderBase | ||
*/ | ||
export interface IAbstractMangoRepositoryBase< | ||
E extends ObjectPlain = ObjectUnknown, | ||
U extends string = DUID | ||
> extends IAbstractMangoFinderBase<E, U> { | ||
readonly cache: MangoCacheRepo<E> | ||
readonly options: MangoRepoOptions<E, U> | ||
readonly validator: IMangoValidator<E> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters