1. 返回Promise时
const fn = (params): Promise<{}> => { ... }const fn = (params): Promise<void> => { ... }
2. 返回JSX元素
const App = (): JSX.Element => { .... }
3. refs的定义
// 可以使用接口定义interface {[string: string]: any;}
4. 函数不定参数定义
interface IExample {func(...args: any[]): void;}
