mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
10 lines
259 B
JavaScript
10 lines
259 B
JavaScript
type A = Obj?.['foo'];
|
|
type B = Obj?.['foo']['bar'];
|
|
type C = Obj['foo']?.['bar'];
|
|
type D = (Obj?.['foo'])['bar'];
|
|
type E = (T & S)?.['bar'];
|
|
type F = (T | S)?.['bar'];
|
|
type G = (?T)?.['bar'];
|
|
type H = (typeof x)?.['bar'];
|
|
type I = (string => void)?.['bar'];
|