Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

snow.3h and rain.3h

Fenopiù Apr 23, 2019 02:06PM BST

"3h" is not a valid name for variables according to ECMAScript 6 / Unicode 8.0.0 so your API doesn't work with Typescript and many other languages. I think is a huge bug, why don't you use standard names? A simple "h3" would give same readability and give usability with every language.

Up 0 rated Down
Josh F Apr 24, 2019 05:15AM BST
"3h" is a valid key for JSON, which the API returns, and is accessible in JavaScript with `rain["3h"]` instead of `rain.3h`. Can you not do the same in Typescript?
Up 0 rated Down
Fenopiù Apr 24, 2019 04:21PM BST
In Typescript it's just a workaround that doesn't give you intellisense.
It works... but is not perfectly fit.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found