UNPKG

@netlify/content-engine

Version:
10 lines 374 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isImage = isImage; function isImage(node) { if (!node.mimeType) { throw new Error(`RemoteFileNode does not have a mimeType. The field is required.`); } return (node.mimeType.startsWith(`image/`) && node.mimeType !== `image/svg+xml`); } //# sourceMappingURL=types.js.map