Validates that store is either undefined or a valid SdkStore. Returns undefined on success, or a GenericError describing the failure.
store
undefined
GenericError
Using this in factory functions avoids duplicating the isSdkStoreHandle guard + INVALID_STORE_MESSAGE string in every package.
isSdkStoreHandle
INVALID_STORE_MESSAGE
Validates that
storeis eitherundefinedor a valid SdkStore. Returnsundefinedon success, or aGenericErrordescribing the failure.Using this in factory functions avoids duplicating the
isSdkStoreHandleguard +INVALID_STORE_MESSAGEstring in every package.