File: jsDeclarationsClassStatic.types

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (57 lines) | stat: -rw-r--r-- 1,283 bytes parent folder | download | duplicates (3)
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
=== tests/cases/conformance/jsdoc/declarations/source.js ===
class Handler {
>Handler : Handler

	static get OPTIONS() {
>OPTIONS : number

		return 1;
>1 : 1
	}

	process() {
>process : () => void
	}
}
Handler.statische = function() { }
>Handler.statische = function() { } : () => void
>Handler.statische : () => void
>Handler : typeof Handler
>statische : () => void
>function() { } : () => void

const Strings = {
>Strings : { a: string; b: string; }
>{    a: "A",    b: "B"} : { a: string; b: string; }

    a: "A",
>a : string
>"A" : "A"

    b: "B"
>b : string
>"B" : "B"
}

module.exports = Handler;
>module.exports = Handler : typeof Handler
>module.exports : typeof Handler
>module : { exports: typeof Handler; }
>exports : typeof Handler
>Handler : typeof Handler

module.exports.Strings = Strings
>module.exports.Strings = Strings : { a: string; b: string; }
>module.exports.Strings : { a: string; b: string; }
>module.exports : typeof Handler
>module : { exports: typeof Handler; }
>exports : typeof Handler
>Strings : { a: string; b: string; }
>Strings : { a: string; b: string; }

/**
 * @typedef {Object} HandlerOptions
 * @property {String} name
 * Should be able to export a type alias at the same time.
 */