js-util

Home > rc-js-util > NestableError > normalizeErrorImpl

NestableError.normalizeErrorImpl() method

This should only be called by library extensions, not user code.

Signature:

protected static normalizeErrorImpl<TError extends NestableError<TLocalization>, TLocalization>(error: unknown, isLocalization: (message: unknown) => message is TLocalization, createNestableError: (error: unknown) => TError): TError;

Parameters

Parameter Type Description
error unknown  
isLocalization (message: unknown) => message is TLocalization  
createNestableError (error: unknown) => TError  

Returns:

TError