#Best Practice when Backend returns inconsistent types handling.

2 messages · Page 1 of 1 (latest)

ancient blaze
#

you could use a union type for code, like code: string | number

#

i am interpreting your question as "how do i model what the backend returns?"; if that's not what you meant then please clarify