@@ -15,39 +15,39 @@ function MyClass() {
15
15
* @returns {MyClass}
16
16
*/
17
17
MyClass.prototype.optionalParam = function(required, notRequired) {
18
- >MyClass.prototype.optionalParam = function(required, notRequired) { return this;} : (required: string, notRequired?: string) => { prop: null ; optionalParam: any; }
18
+ >MyClass.prototype.optionalParam = function(required, notRequired) { return this;} : (required: string, notRequired?: string) => { prop: any ; optionalParam: any; }
19
19
>MyClass.prototype.optionalParam : any
20
20
>MyClass.prototype : any
21
21
>MyClass : () => void
22
22
>prototype : any
23
23
>optionalParam : any
24
- >function(required, notRequired) { return this;} : (required: string, notRequired?: string) => { prop: null ; optionalParam: any; }
24
+ >function(required, notRequired) { return this;} : (required: string, notRequired?: string) => { prop: any ; optionalParam: any; }
25
25
>required : string
26
26
>notRequired : string
27
27
28
28
return this;
29
- >this : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
29
+ >this : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
30
30
31
31
};
32
32
let pInst = new MyClass();
33
- >pInst : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
34
- >new MyClass() : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
33
+ >pInst : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
34
+ >new MyClass() : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
35
35
>MyClass : () => void
36
36
37
37
let c1 = pInst.optionalParam('hello')
38
- >c1 : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
39
- >pInst.optionalParam('hello') : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
40
- >pInst.optionalParam : (required: string, notRequired?: string) => { prop: null ; optionalParam: any; }
41
- >pInst : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
42
- >optionalParam : (required: string, notRequired?: string) => { prop: null ; optionalParam: any; }
38
+ >c1 : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
39
+ >pInst.optionalParam('hello') : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
40
+ >pInst.optionalParam : (required: string, notRequired?: string) => { prop: any ; optionalParam: any; }
41
+ >pInst : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
42
+ >optionalParam : (required: string, notRequired?: string) => { prop: any ; optionalParam: any; }
43
43
>'hello' : "hello"
44
44
45
45
let c2 = pInst.optionalParam('hello', null)
46
- >c2 : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
47
- >pInst.optionalParam('hello', null) : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
48
- >pInst.optionalParam : (required: string, notRequired?: string) => { prop: null ; optionalParam: any; }
49
- >pInst : { prop: null ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
50
- >optionalParam : (required: string, notRequired?: string) => { prop: null ; optionalParam: any; }
46
+ >c2 : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
47
+ >pInst.optionalParam('hello', null) : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
48
+ >pInst.optionalParam : (required: string, notRequired?: string) => { prop: any ; optionalParam: any; }
49
+ >pInst : { prop: any ; optionalParam: (required: string, notRequired?: string) => typeof MyClass; }
50
+ >optionalParam : (required: string, notRequired?: string) => { prop: any ; optionalParam: any; }
51
51
>'hello' : "hello"
52
52
>null : null
53
53
0 commit comments