Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

PreProcessedFileInfo: { fileType: string; filename: string; filepath?: string }

Type declaration

  • fileType: string
  • filename: string
  • Optional filepath?: string
PreProcessedOutput<DataShape>: { data: DataShape; metadata: KeyValueObject; title: string }

Type parameters

  • DataShape: KeyValueObject = KeyValueObject

Type declaration

  • data: DataShape
  • metadata: KeyValueObject
  • title: string
PreProcessingCategory: "json" | "csv" | "whatsapp" | "text" | "twitterJs" | "image" | "video"
PreProcessingTester: { fileTypes: string[]; filenameRegex?: RegExp; preProcessingCategory: PreProcessingCategory }

Type declaration

PreProcessor<DataShape>: (input: { fileContent: string; fileType: string; filename: string }) => PreProcessedOutput<DataShape>

Type parameters

  • DataShape: KeyValueObject = KeyValueObject

Type declaration

    • (input: { fileContent: string; fileType: string; filename: string }): PreProcessedOutput<DataShape>
    • Parameters

      • input: { fileContent: string; fileType: string; filename: string }
        • fileContent: string
        • fileType: string
        • filename: string

      Returns PreProcessedOutput<DataShape>

Generated using TypeDoc