File: moduleExportAssignment2.types

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (33 lines) | stat: -rw-r--r-- 1,783 bytes parent folder | download
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
=== tests/cases/conformance/salsa/npm.js ===
var npm = module.exports = function (tree) {
>npm : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>module.exports = function (tree) {} : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>module.exports : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>module : { "tests/cases/conformance/salsa/npm": { (tree: any): void; asReadInstalled: (tree: any) => void; }; }
>exports : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>function (tree) {} : (tree: any) => void
>tree : any
}
module.exports.asReadInstalled = function (tree) {
>module.exports.asReadInstalled = function (tree) {    npm(tree) // both references should be callable    module.exports(tree)} : (tree: any) => void
>module.exports.asReadInstalled : (tree: any) => void
>module.exports : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>module : { "tests/cases/conformance/salsa/npm": { (tree: any): void; asReadInstalled: (tree: any) => void; }; }
>exports : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>asReadInstalled : (tree: any) => void
>function (tree) {    npm(tree) // both references should be callable    module.exports(tree)} : (tree: any) => void
>tree : any

    npm(tree) // both references should be callable
>npm(tree) : void
>npm : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>tree : any

    module.exports(tree)
>module.exports(tree) : void
>module.exports : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>module : { "tests/cases/conformance/salsa/npm": { (tree: any): void; asReadInstalled: (tree: any) => void; }; }
>exports : { (tree: any): void; asReadInstalled: (tree: any) => void; }
>tree : any
}