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:
slyrz
2018-11-30 13:23:22 +01:00
committed by GitHub
parent c34029e6e0
commit 38e1c355dd
+1 -1
View File
@@ -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.