mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
17 lines
396 B
TypeScript
17 lines
396 B
TypeScript
|
|
/**
|
||
|
|
* @packageDocumentation
|
||
|
|
* @module MediaManager/Preprocessors
|
||
|
|
*/
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Represents a media preprocessor.
|
||
|
|
*/
|
||
|
|
export interface MediaPreprocessor {
|
||
|
|
/**
|
||
|
|
* Processes a file before it's stored.
|
||
|
|
* @param file - The file to process.
|
||
|
|
* @returns A promise that resolves to the processed file.
|
||
|
|
*/
|
||
|
|
process(file: File): Promise<{ file: File } & Record<string, unknown>>;
|
||
|
|
}
|