6
6
// trying to make sure that our changes do not result in any crashes here.
7
7
8
8
const example1 = {
9
- >example1 : { constructor: (value: any, options: any ) => void ; }
10
- >{ /** * @overload Example1(value) * Creates Example1 * @param value [String] */ constructor: function Example1(value, options) {},} : { constructor: (value: any, options: any ) => void ; }
9
+ >example1 : { constructor: (value: any) => any ; }
10
+ >{ /** * @overload Example1(value) * Creates Example1 * @param value [String] */ constructor: function Example1(value, options) {},} : { constructor: (value: any) => any ; }
11
11
12
12
/**
13
13
* @overload Example1(value)
14
14
* Creates Example1
15
15
* @param value [String]
16
16
*/
17
17
constructor: function Example1(value, options) {},
18
- >constructor : (value: any, options: any ) => void
19
- >function Example1(value, options) {} : (value: any, options: any ) => void
20
- >Example1 : (value: any, options: any ) => void
18
+ >constructor : (value: any) => any
19
+ >function Example1(value, options) {} : (value: any) => any
20
+ >Example1 : (value: any) => any
21
21
>value : any
22
22
>options : any
23
23
24
24
};
25
25
26
26
const example2 = {
27
- >example2 : { constructor: () => void ; }
28
- >{ /** * Example 2 * * @overload Example2(value) * Creates Example2 * @param value [String] * @param secretAccessKey [String] * @param sessionToken [String] * @example Creates with string value * const example = new Example(''); * @overload Example2(options) * Creates Example2 * @option options value [String] * @example Creates with options object * const example = new Example2({ * value: '', * }); */ constructor: function Example2() {},} : { constructor: () => void ; }
27
+ >example2 : { constructor: { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; } ; }
28
+ >{ /** * Example 2 * * @overload Example2(value) * Creates Example2 * @param value [String] * @param secretAccessKey [String] * @param sessionToken [String] * @example Creates with string value * const example = new Example(''); * @overload Example2(options) * Creates Example2 * @option options value [String] * @example Creates with options object * const example = new Example2({ * value: '', * }); */ constructor: function Example2() {},} : { constructor: { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; } ; }
29
29
30
30
/**
31
31
* Example 2
@@ -46,15 +46,15 @@ const example2 = {
46
46
* });
47
47
*/
48
48
constructor: function Example2() {},
49
- >constructor : () => void
50
- >function Example2() {} : () => void
51
- >Example2 : () => void
49
+ >constructor : { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; }
50
+ >function Example2() {} : { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; }
51
+ >Example2 : { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; }
52
52
53
53
};
54
54
55
55
const example3 = {
56
- >example3 : { evaluate: (options: any, callback: any ) => void ; }
57
- >{ /** * @overload evaluate(options = {}, [callback]) * Evaluate something * @note Something interesting * @param options [map] * @return [string] returns evaluation result * @return [null] returns nothing if callback provided * @callback callback function (error, result) * If callback is provided it will be called with evaluation result * @param error [Error] * @param result [String] * @see callback */ evaluate: function evaluate(options, callback) {},} : { evaluate: (options: any, callback: any ) => void ; }
56
+ >example3 : { evaluate: () => any ; }
57
+ >{ /** * @overload evaluate(options = {}, [callback]) * Evaluate something * @note Something interesting * @param options [map] * @return [string] returns evaluation result * @return [null] returns nothing if callback provided * @callback callback function (error, result) * If callback is provided it will be called with evaluation result * @param error [Error] * @param result [String] * @see callback */ evaluate: function evaluate(options, callback) {},} : { evaluate: () => any ; }
58
58
59
59
/**
60
60
* @overload evaluate(options = {}, [callback])
@@ -70,9 +70,9 @@ const example3 = {
70
70
* @see callback
71
71
*/
72
72
evaluate: function evaluate(options, callback) {},
73
- >evaluate : (options: any, callback: any ) => void
74
- >function evaluate(options, callback) {} : (options: any, callback: any ) => void
75
- >evaluate : (options: any, callback: any ) => void
73
+ >evaluate : () => any
74
+ >function evaluate(options, callback) {} : () => any
75
+ >evaluate : () => any
76
76
>options : any
77
77
>callback : any
78
78
0 commit comments