@theredhead — Frontend Library - v1.0.0
    Preparing search index...
    • Parses a comma-separated allowed-types mask into an AllowedFileTypes object.

      The format mirrors the HTML <input accept> attribute:

      • .ext — file extension (case-insensitive, leading dot optional)
      • type/subtype— exact MIME type, e.g. application/json
      • type/* — MIME wildcard, e.g. image/*

      Parameters

      • mask: string

      Returns AllowedFileTypes

      const types = parseAllowedTypes(".ts, .tsx, image/*");