Skip to content

Commit 52a43a8

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
Update filter and callback params in userScripts API. These were incorrectly marked as required or as not returning anything.
PiperOrigin-RevId: 614601135
1 parent b48387f commit 52a43a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contrib/externs/chrome_extensions.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -12589,8 +12589,8 @@ chrome.userScripts.WorldProperties;
1258912589
chrome.userScripts.configureWorld = function(properties, opt_callback) {};
1259012590

1259112591
/**
12592-
* @param {!chrome.userScripts.UserScriptFilter} filter
12593-
* @param {function(): void=} opt_callback
12592+
* @param {(!chrome.userScripts.UserScriptFilter|undefined)} filter
12593+
* @param {function(!Array<!chrome.userScripts.RegisteredUserScript>): void=} opt_callback
1259412594
* @return {undefined}
1259512595
*/
1259612596
chrome.userScripts.getScripts = function(filter, opt_callback) {};
@@ -12603,7 +12603,7 @@ chrome.userScripts.getScripts = function(filter, opt_callback) {};
1260312603
chrome.userScripts.register = function(scripts, opt_callback) {};
1260412604

1260512605
/**
12606-
* @param {!chrome.userScripts.UserScriptFilter} filter
12606+
* @param {(!chrome.userScripts.UserScriptFilter|undefined)} filter
1260712607
* @param {function(): void=} opt_callback
1260812608
* @return {undefined}
1260912609
*/

0 commit comments

Comments
 (0)