🔎 Search Terms
completion generic object properties separator newline
🕗 Version & Regression Information
Same in TS 3.3
⏯ Playground Link
Link
💻 Code
type Foo<T extends { bar: string, baz: string }> = T
type Foo1 = Foo<{
bar: string
// start typing baz - no completion
}>
🙁 Actual behavior
No completion is shown for the baz property if the previous line (bar: string) is not terminated with a comma or semicolon
🙂 Expected behavior
Completion should work even when the object members are separated by newlines only, without requiring a comma or semicolon
Additional information about the issue
Prettier formats object types with newlines
🔎 Search Terms
completion generic object properties separator newline
🕗 Version & Regression Information
Same in TS 3.3
⏯ Playground Link
Link
💻 Code
🙁 Actual behavior
No completion is shown for the
bazproperty if the previous line (bar: string) is not terminated with a comma or semicolon🙂 Expected behavior
Completion should work even when the object members are separated by newlines only, without requiring a comma or semicolon
Additional information about the issue
Prettier formats object types with newlines