Interface ParseMedia
interface ParseMedia {
exclude?: Set<string>;
mediaTypes?: ReadonlySet<MediaTypes> | Set<MediaTypes>;
raiseException?: boolean;
routePrefix?: string;
url: string | URL;
}
exclude?: Set<string>;
mediaTypes?: ReadonlySet<MediaTypes> | Set<MediaTypes>;
raiseException?: boolean;
routePrefix?: string;
url: string | URL;
}
Index
Properties
Properties
Optionalexclude
A set of file extensions to exclude from validation.
OptionalmediaTypes
A set of media types to validate against including: audio, img, svg, video.
OptionalraiseException
raiseException?: boolean
When true exceptions are thrown.
OptionalroutePrefix
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.