global.d.ts 1.0 KB

1234567891011121314151617181920212223242526
  1. declare function fetch(
  2. input: RequestInfo,
  3. init?: RequestInit,
  4. ): Promise<Response>;
  5. declare interface GlobalFetch {
  6. fetch(input: RequestInfo, init?: RequestInit): Promise<Response>;
  7. }
  8. type RequestInfo = import('./fetch').RequestInfo;
  9. type Headers = import('./fetch').Headers;
  10. type HeadersInit = import('./fetch').HeadersInit;
  11. type Body = import('./fetch').Body;
  12. type Request = import('./fetch').Request;
  13. type RequestAgent = import('./fetch').RequestAgent;
  14. type RequestInit = import('./fetch').RequestInit;
  15. type RequestMode = import('./fetch').RequestMode;
  16. type RequestCredentials = import('./fetch').RequestCredentials;
  17. type RequestCache = import('./fetch').RequestCache;
  18. type RequestRedirect = import('./fetch').RequestRedirect;
  19. type ReferrerPolicy = import('./fetch').ReferrerPolicy;
  20. type Response = import('./fetch').Response;
  21. type ResponseInit = import('./fetch').ResponseInit;
  22. type BodyInit = import('./fetch').BodyInit;
  23. type URLSearchParams = import('./url').URLSearchParams;
  24. type URLSearchParamsInit = import('./url').URLSearchParamsInit;