Type aliases
PreProcessedFileInfo
PreProcessedFileInfo: { fileType: string; filename: string; filepath?: string }
Type declaration
fileType: string
filename: string
Optional filepath?: string
PreProcessedOutput
PreProcessedOutput<DataShape>: { data: DataShape; metadata: KeyValueObject; title: string }
Type parameters
DataShape: KeyValueObject = KeyValueObject
Type declaration
data: DataShape
metadata: KeyValueObject
title: string
PreProcessingCategory
PreProcessingCategory: "json" | "csv" | "whatsapp" | "text" | "twitterJs" | "image" | "video"
PreProcessingTester
Pre
Processing
Tester
: { fileTypes
: string[]; filenameRegex
?: RegExp; preProcessingCategory
: PreProcessingCategory }Type declaration
fileTypes: string[]
Optional filenameRegex?: RegExp
PreProcessor
Pre
Processor
<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