Skip to content
1 min read · 38 words

Function: inferTextMimeFromPath() ​

ts
function inferTextMimeFromPath(path: string): string;

Defined in: src/lib/patch/index.ts:414

Infer a text MIME from a workspace path's extension (Add File outputs).

Parameters ​

ParameterType
pathstring

Returns ​

string