Skip to content

Commit

Permalink
fix(type): add "export" to all type to suppress (import/named) of ESLint
Browse files Browse the repository at this point in the history
fix #321
  • Loading branch information
JOU-amjs committed Apr 7, 2024
1 parent 4c32b81 commit 6351fdb
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 90 deletions.
6 changes: 3 additions & 3 deletions typings/globalfetch.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { AlovaRequestAdapter } from '.';

export type FetchRequestInit = Omit<RequestInit, 'body' | 'headers' | 'method'>;
type FetchRequestInit = Omit<RequestInit, 'body' | 'headers' | 'method'>;

/**
* GlobalFetch请求适配器
*/
export type GlobalFetchRequestAdapter = AlovaRequestAdapter<any, any, FetchRequestInit, Response, Headers>;
type GlobalFetchRequestAdapter = AlovaRequestAdapter<any, any, FetchRequestInit, Response, Headers>;

function GlobalFetch(): GlobalFetchRequestAdapter;
declare function GlobalFetch(): GlobalFetchRequestAdapter;
export = GlobalFetch;
Loading

0 comments on commit 6351fdb

Please sign in to comment.