5 lines
No EOL
111 B
TypeScript
5 lines
No EOL
111 B
TypeScript
//@noImplicitAny: true
|
|
declare function foo<T extends [any]>(x: T): T;
|
|
|
|
var y = foo([undefined]);
|
|
y = [""]; |