Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "types/fileTypes"

Index

Type aliases

CustomFileType

CustomFileType: { name: string; type: FileTypes }

Type declaration

FileConfigType

FileConfigType: { primaryType: FileTypes | string; types: Array<{ name: FileTypes | string; number: { max: number; min: number } }> }

Type declaration

  • primaryType: FileTypes | string
  • types: Array<{ name: FileTypes | string; number: { max: number; min: number } }>

FileNameTypes

FileNameTypes: { audio?: string[]; image?: string[]; other?: string[]; video?: string[] }

Type declaration

  • Optional audio?: string[]
  • Optional image?: string[]
  • Optional other?: string[]
  • Optional video?: string[]

FileTransformType

FileTransformType: { fileObj?: FileWithMetadata; position?: undefined | number; secondPosition?: undefined | number; state: "Move" | "Insert" | "Delete"; type: FileTypes }

Type declaration

  • Optional fileObj?: FileWithMetadata
  • Optional position?: undefined | number
  • Optional secondPosition?: undefined | number
  • state: "Move" | "Insert" | "Delete"
  • type: FileTypes

FileTypes

FileTypes: keyof InputFilesType

FileWithMetadata

FileWithMetadata: { customType: "video" | "audio" | "image" | "other"; file: File; preview: string; videoMetadata?: undefined | { duration: number; height: number; otherMetadata: any; width: number } }

Type declaration

  • customType: "video" | "audio" | "image" | "other"
  • file: File
  • preview: string
  • Optional videoMetadata?: undefined | { duration: number; height: number; otherMetadata: any; width: number }

InputFilesType

InputFilesType: { audio?: FileWithMetadata[]; image?: FileWithMetadata[]; other?: FileWithMetadata[]; video?: FileWithMetadata[] }

Type declaration

VideoFilesType

VideoFilesType: Array<FileWithMetadata>

Generated using TypeDoc