mirror of
https://github.com/google/blockly.git
synced 2026-01-08 09:30:06 +01:00
refactor(blocks): Migrate blocks/variables.js and blocks/variables_dynamic.js to TypeScript (#7001)
* refactor: run js2ts on variables * refactor: clean up conversion of variables blocks to typescript * refactor: add types for custom context menu options * refactor: run js2ts on blocks/variables_dynamic.js * refactor: clean up types in variables_dynamic * chore: respond to PR comments * chore: format
This commit is contained in:
@@ -220,7 +220,7 @@ export function dispose() {
|
||||
* @param xml XML representation of new block.
|
||||
* @returns Function that creates a block.
|
||||
*/
|
||||
export function callbackFactory(block: Block, xml: Element): Function {
|
||||
export function callbackFactory(block: Block, xml: Element): () => void {
|
||||
return () => {
|
||||
eventUtils.disable();
|
||||
let newBlock;
|
||||
|
||||
Reference in New Issue
Block a user