【TS】对已有的模块导出新类型

declare module '@alipay/bigfish' {
  function useModel<S>(initialState: string);
  function request<S>(url: string, options: any);

  export const history: {
    prototype: History;
    location: {
      prototype: Location;
      query: any;
    };
    push: any;
  };
}
posted @ 2021-03-31 11:22  My灬Best丶Angel  阅读(575)  评论(0编辑  收藏  举报