10 lines
271 B
TypeScript
10 lines
271 B
TypeScript
// @declaration: true
|
|
|
|
function f1(...args) { }
|
|
function f2(x: (...args) => void) { }
|
|
function f3(x: { (...args): void }) { }
|
|
function f4<T extends (...args) => void>() { }
|
|
function f5<T extends { (...args): void }>() { }
|
|
var f6 = () => { return [<any>10]; }
|
|
|
|
|