Skip to content

TypeScript API / laikacms/file-sanitizer / DetectedFileType

Type Alias: DetectedFileType ​

ts
type DetectedFileType = 
  | SanitizableFileType
  | "tiff"
  | "heic"
  | "heif"
  | "mp4"
  | "mov"
  | "avi"
  | "pdf"
  | "unknown";

All detectable file types Note: 'unknown' and any non-sanitizable type throws an error (unless in ignoreExtensions)

Released under the MIT License.