checkout-sdk-js
checkout-sdk-js copied to clipboard
LineItemOption.valueId can be string or null
Type definition says it's number: https://github.com/bigcommerce/checkout-sdk-js/blob/f79e8a43f6f32e359aeecd77c40de4d564806aed/dist/checkout-sdk.d.ts#L2743
However in the real world we get string and null as well
looks like when value is something like "123" value_id is "123" as well
Thanks for submitting this issue. Will investigate whether the API needs to be fixed or either update the JS definitions.
This definition needs to be updated in our SDK types. API can actually return null in some scenarios.