framework-do-dede 6.0.2 → 6.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,8 +14,8 @@ export interface RepositoryRestore<T extends Entity> {
|
|
|
14
14
|
export type RepositoryRemoveBy<T> = {
|
|
15
15
|
[K in keyof T & string as `removeBy${Capitalize<K>}`]: (value: T[K]) => Promise<void>;
|
|
16
16
|
};
|
|
17
|
-
export type RepositoryRestoreBy<
|
|
18
|
-
[K in keyof
|
|
17
|
+
export type RepositoryRestoreBy<TKeys, TResult = TKeys> = {
|
|
18
|
+
[K in keyof TKeys & string as `restoreBy${Capitalize<K>}`]: (value: TKeys[K]) => Promise<Optional<TResult>>;
|
|
19
19
|
};
|
|
20
20
|
export type RepositoryExistsBy<T> = {
|
|
21
21
|
[K in keyof T & string as `existsBy${Capitalize<K>}`]: (value: T[K]) => Promise<boolean>;
|