function foo(x: mixed): %checks { return typeof x === "string"; };