mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
Resolve remaining compiler type warnings (#3334)
* Resolve remaining compiler warnings with inconsistent types.
This commit is contained in:
@@ -363,7 +363,7 @@ Blockly.hideChaff = function(opt_allowToolbox) {
|
||||
* @return {!Blockly.Workspace} The main workspace.
|
||||
*/
|
||||
Blockly.getMainWorkspace = function() {
|
||||
return Blockly.mainWorkspace;
|
||||
return /** @type {!Blockly.Workspace} */ (Blockly.mainWorkspace);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -396,7 +396,7 @@ Blockly.confirm = function(message, callback) {
|
||||
* recommend testing mobile when overriding this.
|
||||
* @param {string} message The message to display to the user.
|
||||
* @param {string} defaultValue The value to initialize the prompt with.
|
||||
* @param {!function(string)} callback The callback for handling user response.
|
||||
* @param {!function(?string)} callback The callback for handling user response.
|
||||
*/
|
||||
Blockly.prompt = function(message, defaultValue, callback) {
|
||||
callback(prompt(message, defaultValue));
|
||||
|
||||
Reference in New Issue
Block a user