mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
🤖 Merge PR #48157 k6/http CookieJar is not abstract by @repl-chris
This commit is contained in:
parent
4da8540811
commit
ea2a3d28f3
2
types/k6/http.d.ts
vendored
2
types/k6/http.d.ts
vendored
@ -654,7 +654,7 @@ export abstract class FileData {
|
||||
* Object for storing cookies.
|
||||
* https://docs.k6.io/docs/cookiejar-k6http
|
||||
*/
|
||||
export abstract class CookieJar {
|
||||
export class CookieJar {
|
||||
protected __brand: never;
|
||||
|
||||
/**
|
||||
|
||||
@ -299,6 +299,10 @@ responseText = response.submitForm({
|
||||
});
|
||||
response.submitForm({}, 5); // $ExpectError
|
||||
|
||||
// CookieJar
|
||||
jar = new CookieJar();
|
||||
new CookieJar(5); // $ExpectError
|
||||
|
||||
// cookieJar
|
||||
jar = cookieJar();
|
||||
cookieJar(5); // $ExpectError
|
||||
|
||||
Loading…
Reference in New Issue
Block a user