Skip to content

Function: nameOf()

Documentation / @wtf/platform-fs / errors / nameOf

function nameOf(error): string | undefined;

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

The name an error has, as a DOMException’s NotFoundError, or none.

Parameters

ParameterType
errorunknown

Returns

string | undefined