exiftool-vendored
Version:
Efficient, cross-platform access to ExifTool
24 lines (23 loc) • 728 B
TypeScript
import { ExifToolTask } from "./ExifToolTask";
export interface ErrorsAndWarnings {
/**
* This is a list of all critical errors raised by ExifTool during the read
* process.
*/
errors?: string[];
/**
* This is a list of all non-critical errors raised by ExifTool during the
* read process.
*
* Invalid field values are considered warnings and not errors, for example.
*/
warnings?: string[];
}
export declare function errorsAndWarnings(task: ExifToolTask<unknown>, t?: {
Error?: string;
Warning?: string;
}): Required<ErrorsAndWarnings>;
/**
* Convert an unknown value to an Error.
*/
export declare function toError(e: unknown, messageIfBlank?: string): Error;