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
Type 'BigInt' does not satisfy the constraint 'string | number | symbol'.
Type 'BigInt' cannot be used as an index type.
Type 'BigInt' cannot be used as an index type.
🙂 Expected behavior
No errors should be reported as BigInts can in fact be used as an index type in JS.
The text was updated successfully, but these errors were encountered:
Sorry about that! Since the exact search for the error messages ("BigInt cannot be used as an index type." and 'BigInt' does not satisfy the constraint 'string | number | symbol') didn't bring up anything, I assumed, that this wasn't reported yet. I'll close this duplicate now.
Bug Report
🔎 Search Terms
BigInt, indexing,
Type 'BigInt' does not satisfy the constraint 'string | number | symbol'.
🕗 Version & Regression Information
⏯ Playground Link
Playground link with relevant code
💻 Code
🙁 Actual behavior
TypeScript reports three errors:
🙂 Expected behavior
No errors should be reported as BigInts can in fact be used as an index type in JS.
The text was updated successfully, but these errors were encountered: