TagLocationReturnValue
LocationTaggers APIs return either a set of TaggingAttributes or undefined
. The latter occurs whenever an Error is thrown.
type TagLocationReturnValue = TagLocationAttributes | undefined;
info
Returning undefined
in case of Errors works because it's spreadable: {...undefined}
returns {}
.