interface
and type
similar, and the difference is mostly historical, I think. Recent changes in the implementation of dispersion of properties have also led to behaviors type
more consistent with behavior interface
. I believe that the goal is to ultimately make them identical and possibly even remove them interface
.
There may be a subtle difference, but for most applications, I don’t think you will notice the difference.
, implements
(, class Foo implements Bar {...}
), Bar
interface
- not a type
. , . Flow , , , , type
, , .