Address comments on flow type imports (#312)
This commit is contained in:
1
test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/actual.js
vendored
Normal file
1
test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import type {type t} from "foo";
|
||||
3
test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/options.json
vendored
Normal file
3
test/fixtures/flow/type-imports/invalid-import-type-shorthand-2/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "`The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements` (1:13)"
|
||||
}
|
||||
@@ -1,2 +1 @@
|
||||
import typeof {typeof t} from "foo";
|
||||
import type {type t} from "foo";
|
||||
|
||||
Reference in New Issue
Block a user