MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / readHintMimeType

Function readHintMimeType

packages/plugins/openapi/src/sdk/invoke.ts:496–497  ·  view source on GitHub ↗
(hint: OperationFileHint, fallback: string)

Source from the content-addressed store, hash-verified

494 Option.getOrElse(option, () => fallback);
495
496const readHintMimeType = (hint: OperationFileHint, fallback: string): string =>
497 Option.getOrElse(hint.mimeType, () => fallback);
498
499const readHintEncoding = (hint: OperationFileHint): "base64" | "base64url" =>
500 Option.getOrElse(hint.encoding, () => "base64");

Callers 2

fileFromByteFieldFunction · 0.85
fileFromBinaryBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected