Add runtime type checks for config #543
Labels
blocked
Depends on other issue being solved
bug
Something is not working as expected
priority: low
usability
Improves ease of use
With TS, type guards can not be applied at runtime for optional config values. Thus when values of incorrect types are provided in
runtime-config.json
, the app does not work as expected.Suggested solution
Show error message if config is provided with values of incorrect types.. Add user defined type guards to
config.tsx
. F.e. as described here https://stackoverflow.com/a/43279180Depends on #536 being merged.
The text was updated successfully, but these errors were encountered: