Interface ParseMedia
interface ParseMedia {
exclude?: Set<string>;
mediaTypes?: Set<MediaTypes>;
raiseException?: boolean;
routePrefix?: string;
url: string | URL;
}
exclude?: Set<string>;
mediaTypes?: Set<MediaTypes>;
raiseException?: boolean;
routePrefix?: string;
url: string | URL;
}
Index
Properties
Properties
Optional
exclude
A set of file extensions to exclude from validation.
Optional
mediaTypes
A set of media types to validate against including: audio
, img
, svg
, video
.
Optional
raiseException
raiseException?: boolean
When true exceptions are thrown.
Optional
routePrefix
routePrefix?: string
An additional route / URL prefix to add in constructing URL.
url
The URL of the media asset to validate.
Options for AssetValidator.parseMedia.