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? . .

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
phpcn_u1582

es6 cannot be written like this. What you see should be typescript code.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template