Skip to content

Minima.js API


Minima.js API / @minimajs/disk / helpers / resolveContentType

Function: resolveContentType() ​

ts
function resolveContentType(data, options?): string | undefined;

Resolve content type from options or data Uses FilePropertyBag's 'type' property (web-native)

Parameters ​

data ​

DiskData

options? ​

PutOptions

Returns ​

string | undefined