kaven-basic - v6.0.0
    Preparing search index...

    Function GetMediaTypeByExtension

    • Retrieves the first matching media type for a given file extension.

      Parameters

      • fileExtension: string

        The file extension (e.g., "jpg", "mp4") to look up.

      Returns undefined | IMediaType

      The first IMediaType associated with the extension, or undefined if none is found.