Closed
Description
π Search Terms
"computed property name", "required"
π Version & Regression Information
- This changed between versions 5.1.6 and 5.2.0
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about (nonexistant)
β― Playground Link
π» Code
const foo: Record<string, {name: string}> = {
[`foo`]: {},
[`${"bar"}`]: {},
[`${String("baz")}`]: {},
}
π Actual behavior
The first and second properties are erroring as expected because of missing name
property, but the third one does not, while it should.
π Expected behavior
All three object properties should error because of missing name
property.
Additional information about the issue
In 5.1, only the first property error was detected, since 5.2, it now detects the first two. Ideally it should detect all three cases.