isFileOrBuffer

function isFileOrBuffer(
data: any,
): data is File | Buffer | BufferOrStringWithName;

Parameters

Type

let data: any;

Returns

let returnType: data is ((File) | (Buffer) | (BufferOrStringWithName))