mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
11 lines
227 B
JavaScript
11 lines
227 B
JavaScript
// @flow
|
|
|
|
// Sanity check: make sure the parameters are checked as usual
|
|
|
|
declare function foo(
|
|
input: mixed,
|
|
types: string | Array<string>
|
|
): boolean %checks(typeof input === "string" || Array.isArray(input));
|
|
|
|
foo(3, 3);
|