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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
=== tests/cases/conformance/salsa/use.js ===
/// <reference path='./types.d.ts'/>
var mini = require('./minimatch')
>mini : typeof minimatch
>require('./minimatch') : typeof minimatch
>require : any
>'./minimatch' : "./minimatch"
mini.M.defaults()
>mini.M.defaults() : any
>mini.M.defaults : (def: any) => any
>mini.M : typeof M
>mini : typeof minimatch
>M : typeof M
>defaults : (def: any) => any
var m = new mini.M()
>m : M
>new mini.M() : M
>mini.M : typeof M
>mini : typeof minimatch
>M : typeof M
m.m()
>m.m() : void
>m.m : () => void
>m : M
>m : () => void
mini.filter()
>mini.filter() : void
>mini.filter : () => void
>mini : typeof minimatch
>filter : () => void
=== tests/cases/conformance/salsa/types.d.ts ===
declare var require: any;
>require : any
declare var module: any;
>module : any
=== tests/cases/conformance/salsa/minimatch.js ===
/// <reference path='./types.d.ts'/>
module.exports = minimatch
>module.exports = minimatch : typeof minimatch
>module.exports : typeof minimatch
>module : { "tests/cases/conformance/salsa/minimatch": typeof minimatch; }
>exports : typeof minimatch
>minimatch : typeof minimatch
minimatch.M = M
>minimatch.M = M : typeof M
>minimatch.M : typeof M
>minimatch : typeof minimatch
>M : typeof M
>M : typeof M
minimatch.filter = filter
>minimatch.filter = filter : () => void
>minimatch.filter : () => void
>minimatch : typeof minimatch
>filter : () => void
>filter : () => void
function filter() {
>filter : () => void
return minimatch()
>minimatch() : void
>minimatch : typeof minimatch
}
function minimatch() {
>minimatch : typeof minimatch
}
M.defaults = function (def) {
>M.defaults = function (def) { return def} : (def: any) => any
>M.defaults : (def: any) => any
>M : typeof M
>defaults : (def: any) => any
>function (def) { return def} : (def: any) => any
>def : any
return def
>def : any
}
M.prototype.m = function () {
>M.prototype.m = function () {} : () => void
>M.prototype.m : any
>M.prototype : any
>M : typeof M
>prototype : any
>m : any
>function () {} : () => void
}
function M() {
>M : typeof M
}
|