newtests/autocomplete/optional.js (3 lines of code) (raw):

// function foo(obj: { x?: string, f: (x?: string) => void, o: { x?: string } }) { return obj. }