Menu

📰
0

Issue in typescript

Reddit r/learnprogramming·u/OakAndCobble·about 1 month ago
#u4uKe3vE
Reading 0:00
15s threshold

Issue in typescript I tried to ask a question on the typescript subreddit and they've yet to approve the post, so I'm hoping I can get a quicker response here. Can anyone explain why I am getting an error on the last line where I try to reference a member of the map? Any member, not just entries() results in the same error: Uncaught (in promise) TypeError: newDraft.itemsPerCategory.entries is not a function. It seems like there is no way to get the interpreter to recognize that the parsed json is of type DraftOrder (despite the fact that I see the DraftOrder type hint in my IDE).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More