Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

678 B
Raw Blame
import type { DeepPartial } from '@corentinth/chisels';

export type ExtractorConfig = {
  tesseract: {
    languages: string[];
    forceJs?: boolean;
    binary?: string;
  };
};

export type PartialExtractorConfig = undefined | DeepPartial<ExtractorConfig>;

export type Logger = {
  debug: (...args: [data: Record<string, unknown>, message: string] | [message: string]) => void;
  info: (...args: [data: Record<string, unknown>, message: string] | [message: string]) => void;
  warn: (...args: [data: Record<string, unknown>, message: string] | [message: string]) => void;
  error: (...args: [data: Record<string, unknown>, message: string] | [message: string]) => void;
};