mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
11 lines
367 B
TypeScript
11 lines
367 B
TypeScript
//Function overload signature with optional parameter followed by non-optional parameter
|
|
function fn4a(x?: number, y: string);
|
|
function fn4a() { }
|
|
|
|
function fn4b(n: string, x?: number, y: string);
|
|
function fn4b() { }
|
|
|
|
//Function overload signature with rest param followed by non-optional parameter
|
|
function fn5(x: string, ...y: any[], z: string);
|
|
function fn5() { }
|