Incorrect optional typescript declaration generation?

(noob question) do you mean, in my example, header: ?Text;?