117
rated 0 times
[
124]
[
7]
/ answers: 1 / hits: 39591
/ 6 Years ago, mon, may 21, 2018, 12:00:00
Flow allows you to use the following syntax to import types:
// SomeClass.js
export default class SomeClass {}
// SomeFile.js
import type SomeClass from './SomeClass';
What's the benefit of using import type
instead of import
? Does it tell Flow more information and let it perform better static analysis?
More From » ecmascript-6