prettier/tests/flow/declaration_files_increment.../index.js

8 lines
253 B
JavaScript

/* @flow */
var A = require('A');
(A.foo(): boolean); // Error: Either AImplementation ~> boolean or ADefinition ~> boolean
var test = require('test');
(test.foo(): boolean); // Error: Either TestImplementation ~> boolean or TestDefinition ~> boolean