mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
14 lines
309 B
TypeScript
14 lines
309 B
TypeScript
|
|
import { ReadStream } from 'fs';
|
||
|
|
|
||
|
|
export interface ImmichReadStream {
|
||
|
|
stream: ReadStream;
|
||
|
|
type: string;
|
||
|
|
length: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export const IStorageRepository = 'IStorageRepository';
|
||
|
|
|
||
|
|
export interface IStorageRepository {
|
||
|
|
createReadStream(filepath: string, mimeType: string): Promise<ImmichReadStream>;
|
||
|
|
}
|