1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
//// [declFileTypeAnnotationParenType.ts]
class c {
private p: string;
}
var x: (() => c)[] = [() => new c()];
var y = [() => new c()];
var k: (() => c) | string = (() => new c()) || "";
var l = (() => new c()) || "";
//// [declFileTypeAnnotationParenType.js]
var c = /** @class */ (function () {
function c() {
}
return c;
}());
var x = [function () { return new c(); }];
var y = [function () { return new c(); }];
var k = (function () { return new c(); }) || "";
var l = (function () { return new c(); }) || "";
//// [declFileTypeAnnotationParenType.d.ts]
declare class c {
private p;
}
declare var x: (() => c)[];
declare var y: (() => c)[];
declare var k: (() => c) | string;
declare var l: string | (() => c);
|