Skip to content

Commit

Permalink
fix: mark option type as optional (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetinaXD authored Jan 6, 2025
1 parent e04f333 commit 4a8a37f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/good-actors-share.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@alova/adapter-xhr': patch
---

fix: mark option type as optional.
2 changes: 1 addition & 1 deletion packages/adapter-xhr/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export interface AlovaXHRAdapterOptions {
/**
* XMLHttpRequest request adapter
*/
export declare function xhrRequestAdapter(options: AlovaXHRAdapterOptions): AlovaXHRAdapter;
export declare function xhrRequestAdapter(options?: AlovaXHRAdapterOptions): AlovaXHRAdapter;

/**
* Mock response adapter, which is used in @alova/mock to allow xhr response data to be returned in a format compatible with mock requests.
Expand Down

0 comments on commit 4a8a37f

Please sign in to comment.