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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
=== tests/cases/conformance/salsa/index.js ===
/// <reference path='./types.d.ts'/>
const C = require("./semver")
>C : typeof C
>require("./semver") : typeof C
>require : any
>"./semver" : "./semver"
var two = C.f(1)
>two : any
>C.f(1) : any
>C.f : (n: any) => any
>C : typeof C
>f : (n: any) => any
>1 : 1
=== tests/cases/conformance/salsa/types.d.ts ===
declare var require: any;
>require : any
declare var module: any;
>module : any
=== tests/cases/conformance/salsa/semver.js ===
/// <reference path='./types.d.ts'/>
exports = module.exports = C
>exports = module.exports = C : typeof C
>exports : typeof C
>module.exports = C : typeof C
>module.exports : typeof C
>module : { "tests/cases/conformance/salsa/semver": typeof C; }
>exports : typeof C
>C : typeof C
C.f = n => n + 1
>C.f = n => n + 1 : (n: any) => any
>C.f : (n: any) => any
>C : typeof C
>f : (n: any) => any
>n => n + 1 : (n: any) => any
>n : any
>n + 1 : any
>n : any
>1 : 1
function C() {
>C : typeof C
this.p = 1
>this.p = 1 : 1
>this.p : any
>this : any
>p : any
>1 : 1
}
|