Files
test-repo/tests/format/flow/indexed-access/indexed-access.js
T

8 lines
160 B
JavaScript

const x: Obj['bar'] = 1;
type A = (T & S)['bar'];
type B = (T | S)['bar'];
type C = (?T)['bar'];
type D = (typeof x)['bar'];
type E = (string => void)['bar'];