prettier/tests/flow/type-at-pos/test.js

15 lines
255 B
JavaScript

// @flow
var str = require('./import');
function foo() { }
foo();
str
type Point = [number, string];
const x:Point = [1, "foo"];
type MyStr = "cool";
const y:MyStr = "cool";
type MyBool = true;
const z:MyBool = true;
type MyNum = 42;
const w:MyNum = 42;