You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// We can quickly address your report if:// - The code sample is short. Nearly all TypeScript bugs can be demonstrated in 20-30 lines of code!// - It doesn't use external libraries. These are often issues with the type definitions rather than TypeScript bugs.// - The incorrectness of the behavior is readily apparent from reading the sample.// Reports are slower to investigate if:// - We have to pare too much extraneous code.// - We have to clone a large repo and validate that the problem isn't elsewhere.// - The sample is confusing or doesn't clearly demonstrate what's wrong.typeIdType= `${number}-${number}-${number}-${number}`
constid: IdType='0000-0000-0000-0001';typeA=Record<IdType,string>consta: A={[id]: 'test'}a[id]// Element implicitly has an 'any' type because expression of type '`${number}-${number}-${number}-${number}`' can't be used to index type 'A'.(7053)
🙁 Actual behavior
Element implicitly has an 'any' type because expression of type '`${number}-${number}-${number}-${number}`' can't be used to index type 'A'.(7053)
🙂 Expected behavior
ts be happy, cause I love my ts happy.
The text was updated successfully, but these errors were encountered:
Bug Report
🔎 Search Terms
Template literals index Record
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
🙂 Expected behavior
ts be happy, cause I love my ts happy.
The text was updated successfully, but these errors were encountered: