Interface IDocumentParserConnector

interface IDocumentParserConnector {
    getSupportedFileTypes(): string[];
    parse(file: IFile): Promise<string>;
    supports(file: IFile): boolean;
}

Methods

  • Get the supported file types.

    Returns string[]

    The supported file types.

  • Parses a document.

    Parameters

    • file: IFile

      The file to parse.

    Returns Promise<string>

    A promise that resolves with the parsed document.

  • Check if the connector supports a file.

    Parameters

    • file: IFile

      The file to check.

    Returns boolean

    Whether the connector supports the file.