mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
15 lines
252 B
JavaScript
15 lines
252 B
JavaScript
// @flow
|
|
|
|
// Feature: multi params
|
|
function multi_param(w,x,y,z): %checks {
|
|
return typeof z === "string";
|
|
}
|
|
|
|
function foo(x: string | Array<string>): string {
|
|
if (multi_param("1", "2", x, "3")) {
|
|
return x;
|
|
} else {
|
|
return x.join();
|
|
}
|
|
}
|