computed property name in an interface error when using []
already
#58179
Labels
Duplicate
An existing issue was already created
[]
already
#58179
π Search Terms
A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.ts(1169)
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?#code/KYOwrgtgBAouEwB4EMIAcA2woG8BQUhUA1sAJ4CMUAvFAOSmV0A0BRD5AtAM7ADGAexAATOjXqMe-IaNYBfPHgCWIAC7AATgDNkfbAEk1mnXqSpM2fESgBtOJDPosAOkYUAugC4o3VRpUA5gDcbIR28I4WNhxkUoIidO5eUPAARpohCoRAA
π» Code
π Actual behavior
Has Error:
A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.ts(1169)
π Expected behavior
No Error
Additional information about the issue
No response
The text was updated successfully, but these errors were encountered: