javascript - When I read react-motion, I saw a function like export type xxxx. Is there such a way to write it in es6? I don't know. Please ask. . .
天蓬老师2017-05-19 10:33:33
0
1
643
export type SpringHelperConfig = { stiffness?: number, damping?: number, precision?: number, }; Just like the above code, later Can I directly import SpringHelperConfig and use it? . .
es6 cannot be written like this. What you see should be typescript code.