mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: activity types (#15368)
This commit is contained in:
parent
0ce62d8efd
commit
6ce1533117
15 changed files with 75 additions and 57 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { UserEntity } from 'src/entities/user.entity';
|
||||
import { Permission } from 'src/enum';
|
||||
import { ActivityRepository } from 'src/repositories/activity.repository';
|
||||
|
||||
export type AuthApiKey = {
|
||||
id: string;
|
||||
|
|
@ -7,3 +8,11 @@ export type AuthApiKey = {
|
|||
user: UserEntity;
|
||||
permissions: Permission[];
|
||||
};
|
||||
|
||||
export type RepositoryInterface<T extends object> = Pick<T, keyof T>;
|
||||
|
||||
export type IActivityRepository = RepositoryInterface<ActivityRepository>;
|
||||
|
||||
export type ActivityItem =
|
||||
| Awaited<ReturnType<IActivityRepository['create']>>
|
||||
| Awaited<ReturnType<IActivityRepository['search']>>[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue