mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00:00
Remove Promise in Request.frame function
The type definition of the Request class declares the return type of the frame() function as Promise<Frame | null>, but it should be Frame | null only.
This commit is contained in:
Vendored
+1
-1
@@ -968,7 +968,7 @@ export interface Request {
|
||||
/**
|
||||
* @returns The `Frame` object that initiated the request, or `null` if navigating to error pages
|
||||
*/
|
||||
frame(): Promise<Frame | null>;
|
||||
frame(): Frame | null;
|
||||
|
||||
/**
|
||||
* An object with HTTP headers associated with the request.
|
||||
|
||||
Reference in New Issue
Block a user