ts声明回调函数类型

export type Callback = () => void;

  

原文地址:https://www.cnblogs.com/ygunoil/p/15210848.html