📝 docs(index.d.ts): add timeout property to RequestOptions interface
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
The RequestOptions interface now includes a timeout property, which specifies the number of seconds before the request times out. This improves the usability of the interface by allowing developers to specify a timeout for requests.
This commit is contained in:
parent
baa34b4646
commit
65626872e3
2
index.d.ts
vendored
2
index.d.ts
vendored
@ -278,6 +278,8 @@ declare global {
|
||||
method?: string
|
||||
headers?: { [key: string]: string }
|
||||
body?: string
|
||||
// timeout in seconds
|
||||
timeout?: number
|
||||
}
|
||||
): {
|
||||
status: number
|
||||
|
Loading…
Reference in New Issue
Block a user