Debian Codegraph @

packages/babel-generator/test/fixtures/flow/predicates/output.js

raw symbols SCIP
1 declare function foo(x: mixed): boolean %checks(x !== null);
2 declare function my_filter<T, P: $Pred<1>>(v: Array<T>, cb: P): Array<$Refine<T, P, 1>>;
3 declare function f2(x: mixed): string %checks(Array.isArray(x));
4 function foo(x: mixed): %checks {
5 return typeof x === "string";
6 }
7 function is_string(x): boolean %checks {
8 return typeof x === "string";
9 }
10 var f = (x: mixed): %checks => typeof x === "string";
11 const foo2 = (x: mixed): boolean %checks => typeof x === "string";
12 (x): %checks => x !== null;