📝 docs(index.d.ts): add timeout property to RequestOptions interface
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:
Sebastian Frank 2023-05-02 16:23:55 +00:00
parent baa34b4646
commit 65626872e3
Signed by: apairon
SSH Key Fingerprint: SHA256:lYVOnGlR42QHj7wuqfFgGw8cKbfyZUpzeRDGVBBAHQU

2
index.d.ts vendored
View File

@ -278,6 +278,8 @@ declare global {
method?: string
headers?: { [key: string]: string }
body?: string
// timeout in seconds
timeout?: number
}
): {
status: number