Skip to content
1 min read · 74 words

Function: unsupportedForMutationReason()

ts
function unsupportedForMutationReason(mimeType: string): string | undefined;

Defined in: src/batteries/media/formats.ts:119

Reason a mutation verb cannot run against this MIME type, or undefined when mutation is allowed. Returns a reason string (not a throw) so callers compose model-actionable failures.

Parameters

ParameterTypeDescription
mimeTypestringThe media MIME type.

Returns

string | undefined

A human-readable reason, or undefined when mutation is supported.