Demonstration a type inference problem in TSServer.
npm ci
npm start # node_modules/.bin/tsserver < commands.json
interface Params {
foo: string | undefined;
}
export default (params: Params) => params.foo;
// ^---- quickinfo here
// ...(omitted)
"displayString": "(property) default: (params: Params) => string | undefined"
// ...(omitted)
// ...(omitted)
"displayString": "(property) default: (params: Params) => string"
// ...(omitted)