mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
469 B
Diff
19 lines
469 B
Diff
--- old.jsFileMethodOverloads5.js
|
|
+++ new.jsFileMethodOverloads5.js
|
|
@@= skipped -28, +28 lines =@@
|
|
* @param {string} a
|
|
* @return {void}
|
|
*/
|
|
-export function foo(a: string): void;
|
|
/**
|
|
* @overload
|
|
* @param {number} a
|
|
* @param {number} [b]
|
|
* @return {void}
|
|
*/
|
|
-export function foo(a: number, b?: number | undefined): void;
|
|
+/**
|
|
+ * @param {string | number} a
|
|
+ * @param {number} [b]
|
|
+ */
|
|
+export declare const foo: (a: string | number, b?: number) => void;
|