4
4
// trying to make sure that our changes do not result in any crashes here.
5
5
6
6
const example1 = {
7
- >example1 : { constructor: (value: any, options: any ) => void ; }
8
- >{ /** * @overload Example1(value) * Creates Example1 * @param value [String] */ constructor: function Example1(value, options) {},} : { constructor: (value: any, options: any ) => void ; }
7
+ >example1 : { constructor: (value: any) => any ; }
8
+ >{ /** * @overload Example1(value) * Creates Example1 * @param value [String] */ constructor: function Example1(value, options) {},} : { constructor: (value: any) => any ; }
9
9
10
10
/**
11
11
* @overload Example1(value)
12
12
* Creates Example1
13
13
* @param value [String]
14
14
*/
15
15
constructor: function Example1(value, options) {},
16
- >constructor : (value: any, options: any ) => void
17
- >function Example1(value, options) {} : (value: any, options: any ) => void
18
- >Example1 : (value: any, options: any ) => void
16
+ >constructor : (value: any) => any
17
+ >function Example1(value, options) {} : (value: any) => any
18
+ >Example1 : (value: any) => any
19
19
>value : any
20
20
>options : any
21
21
22
22
};
23
23
24
24
const example2 = {
25
- >example2 : { constructor: () => void ; }
26
- >{ /** * 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 ; }
25
+ >example2 : { constructor: { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; } ; }
26
+ >{ /** * 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; } ; }
27
27
28
28
/**
29
29
* Example 2
@@ -44,15 +44,15 @@ const example2 = {
44
44
* });
45
45
*/
46
46
constructor: function Example2() {},
47
- >constructor : () => void
48
- >function Example2() {} : () => void
49
- >Example2 : () => void
47
+ >constructor : { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; }
48
+ >function Example2() {} : { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; }
49
+ >Example2 : { (value: any, secretAccessKey: any, sessionToken: any): any; (): any; }
50
50
51
51
};
52
52
53
53
const example3 = {
54
- >example3 : { evaluate: (options: any, callback: any ) => void ; }
55
- >{ /** * @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 ; }
54
+ >example3 : { evaluate: () => any ; }
55
+ >{ /** * @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 ; }
56
56
57
57
/**
58
58
* @overload evaluate(options = {}, [callback])
@@ -68,9 +68,9 @@ const example3 = {
68
68
* @see callback
69
69
*/
70
70
evaluate: function evaluate(options, callback) {},
71
- >evaluate : (options: any, callback: any ) => void
72
- >function evaluate(options, callback) {} : (options: any, callback: any ) => void
73
- >evaluate : (options: any, callback: any ) => void
71
+ >evaluate : () => any
72
+ >function evaluate(options, callback) {} : () => any
73
+ >evaluate : () => any
74
74
>options : any
75
75
>callback : any
76
76
0 commit comments