8 lines
145 B
TypeScript
8 lines
145 B
TypeScript
|
function foo(a:string, b?:number, c?:string){}
|
||
|
foo('foo', 1);
|
||
|
foo('foo');
|
||
|
foo();
|
||
|
foo(1, 'bar');
|
||
|
foo('foo', 1, 'bar');
|
||
|
foo('foo', 1, 3);
|