silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
195 stars 19 forks source link

Assert compound values #1704

Closed axelboc closed 2 months ago

axelboc commented 3 months ago

Primitive<PrintableCompoundType> resolves to (string | number | boolean | H5WebComplex)[] but we weren't actually asserting for this fully in assertPrimitiveValue. I'm correcting this and also generalising things a bit: