15 lines
310 B
TypeScript
15 lines
310 B
TypeScript
export interface ImportResult {
|
|
content: string;
|
|
metadata: {
|
|
sourceName: string;
|
|
mimeType: string;
|
|
fileSize?: number;
|
|
[key: string]: any;
|
|
};
|
|
}
|
|
|
|
export interface IImportAdapter {
|
|
canHandle(file: Express.Multer.File): boolean;
|
|
parse(file: Express.Multer.File): Promise<ImportResult>;
|
|
}
|