Skip to main content

foundation-store.errormap

Home > @genesislcap/foundation-store > ErrorMap

ErrorMap interface​

Warning: This API is now obsolete.

  • Use ErrorMap from @genesislcap/foundation-utils instead.

Signature:

export interface ErrorMap<TErrorDetailMap extends ErrorDetailMap> extends Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size'> 

Extends: Pick<Map<keyof TErrorDetailMap, Error>, 'get' | 'has' | 'delete' | 'clear' | 'size'>

Properties​

Property

Modifiers

Type

Description

messages

readonly

string

Error map as messages.

Methods​

Method

Description

set(key, error)

Set an error by key.