mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #21430 from kitsonk/patch-1
types/chrome: Use generic with inspectedWindow.eval
This commit is contained in:
Vendored
+1
-1
@@ -1676,7 +1676,7 @@ declare namespace chrome.devtools.inspectedWindow {
|
||||
* Parameter result: The result of evaluation.
|
||||
* Parameter exceptionInfo: An object providing details if an exception occurred while evaluating the expression.
|
||||
*/
|
||||
export function eval(expression: string, callback?: (result: Object, exceptionInfo: EvaluationExceptionInfo) => void): void;
|
||||
export function eval<T>(expression: string, callback?: (result: T, exceptionInfo: EvaluationExceptionInfo) => void): void;
|
||||
/**
|
||||
* Retrieves the list of resources from the inspected page.
|
||||
* @param callback A function that receives the list of resources when the request completes.
|
||||
|
||||
Reference in New Issue
Block a user