Closed joshsalverda closed 1 year ago
Hi Josh, are you sure it always returns a string... even if it's hasObject is true?
Ah oops you're right, although I wonder if there's a nicer way to type it in that case? 🤔 I'm still learning typescript but I'll try taking a closer look. With the current way I need to account for it potentially being an array everywhere, even when I know it's a string.
From my understanding, based on https://github.com/stefalda/react-localization/issues/46, it should only ever return a string now.