Type alias OfficeParse

OfficeParse: ((input, config) => Promise<{
    to(format, config?): Promise<{
        value: unknown;
        messages?: unknown;
    }>;
    metadata?: {
        pages?: number;
    };
}>)

The part of officeparser this loader calls: its parseOffice export, which answers a document that writes itself as text. The text writer's result lists the issues it reported among its messages.

Type declaration

    • (input, config): Promise<{
          to(format, config?): Promise<{
              value: unknown;
              messages?: unknown;
          }>;
          metadata?: {
              pages?: number;
          };
      }>
    • Parameters

      • input: Buffer
      • config: Record<string, unknown>

      Returns Promise<{
          to(format, config?): Promise<{
              value: unknown;
              messages?: unknown;
          }>;
          metadata?: {
              pages?: number;
          };
      }>