Skip to content

Function: codeOf()

Documentation / @wtf/platform-fs-adapter / errors / codeOf

function codeOf(error): string | undefined;

Defined in: packages/platform-fs-adapter/src/errors.ts:50

The code of a failure of Node’s file system, as ENOENT; none of another error.

Parameters

ParameterType
errorunknown

Returns

string | undefined