interface ParseMedia {
    exclude?: Set<string>;
    mediaTypes?: Set<MediaTypes>;
    raiseException?: boolean;
    routePrefix?: string;
    url: string | URL;
}

Properties

exclude?: Set<string>

A set of file extensions to exclude from validation.

mediaTypes?: Set<MediaTypes>

A set of media types to validate against including: audio, img, svg, video.

'audio', 'img', 'svg', 'video'

raiseException?: boolean

When true exceptions are thrown.

false

routePrefix?: string

An additional route / URL prefix to add in constructing URL.

url: string | URL

The URL of the media asset to validate.