Wocart

@wocart/storefront v3.1.0


@wocart/storefront / server / isStorefrontError

Function: isStorefrontError()

isStorefrontError(value): value is StorefrontError

Recognises a StorefrontError across a realm boundary (worker, iframe, Astro action), where instanceof fails but the serialized shape survives.

Parameters

value

unknown

Returns

value is StorefrontError