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:
Rachel Fenichel
2023-04-24 13:09:02 -07:00
committed by GitHub
parent 705a35a2d2
commit 96ecfea857
4 changed files with 103 additions and 96 deletions

View File

@@ -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;