Skip to content

Commit

Permalink
docs: update with modified type signature
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhsf committed Oct 1, 2024
1 parent 996bb03 commit 7368fda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/docs/tough-cookie.cookiejar.getcookies_3.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Retrieve the list of cookies that can be sent in a Cookie header for the current
**Signature:**

```typescript
getCookies(url: string | URL, options?: GetCookiesOptions | undefined): Promise<Cookie[]>;
getCookies(url: string | URL, options?: GetCookiesOptions): Promise<Cookie[]>;
```

## Parameters
Expand Down Expand Up @@ -53,7 +53,7 @@ options

</td><td>

[GetCookiesOptions](./tough-cookie.getcookiesoptions.md) \| undefined
[GetCookiesOptions](./tough-cookie.getcookiesoptions.md)


</td><td>
Expand Down
2 changes: 1 addition & 1 deletion api/tough-cookie.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class CookieJar {
getCookies(url: string): Promise<Cookie[]>;
getCookies(url: string, callback: Callback<Cookie[]>): void;
getCookies(url: string | URL, options: GetCookiesOptions | undefined, callback: Callback<Cookie[]>): void;
getCookies(url: string | URL, options?: GetCookiesOptions | undefined): Promise<Cookie[]>;
getCookies(url: string | URL, options?: GetCookiesOptions): Promise<Cookie[]>;
// @internal
getCookies(url: string | URL, options: GetCookiesOptions | undefined | Callback<Cookie[]>, callback?: Callback<Cookie[]>): unknown;
getCookiesSync(url: string, options?: GetCookiesOptions): Cookie[];
Expand Down

0 comments on commit 7368fda

Please sign in to comment.