* Change the default type parameter constraint and default to unknown from {} * Relax unknown checking outside of strictNullChecks a bit * Increase strictness on index signatures with type `unknown` so inference doesnt change surprisingly * Remove redundant switch
8 lines
230 B
TypeScript
8 lines
230 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
////function foo<T>(x: number, callback: (x: T) => number) {
|
|
////}
|
|
////foo(/*1*/
|
|
|
|
verify.signatureHelp({ marker: "1", text: "foo(x: number, callback: (x: unknown) => number): void" });
|