We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
TypeScript Version: 2.7.0-dev.20171108
Code
declare function first<T>(array: T[]): T | undefined; function f(x?: string[]) { return first(x); } const x = f([]);
Expected behavior:
Type of x is {} | undefined.
x
{} | undefined
Actual behavior:
Type of x is T | undefined.
T | undefined