Skip to content

Commit

Permalink
make 'options' typings optional
Browse files Browse the repository at this point in the history
  • Loading branch information
udivankin committed Nov 25, 2020
1 parent 1c7a37c commit 44376ec
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pico-ajax",
"version": "1.0.2",
"version": "1.0.3",
"engines": {
"node": ">=8"
},
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type PicoAjaxResponseError = Error & {
}

export interface PicoAjaxRequest {
(url: string, options: PicoAjaxRequestOptions): Promise<PicoAjaxResponse|PicoAjaxResponseError>;
(url: string, options?: PicoAjaxRequestOptions): Promise<PicoAjaxResponse|PicoAjaxResponseError>;
}

export interface PicoAjax {
Expand Down

0 comments on commit 44376ec

Please sign in to comment.