From 2dfd41a5b12041d045479b192975579bdb83100f Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Fri, 22 Jul 2022 18:39:16 +0000 Subject: [PATCH] fix: types of compose and decompose in block --- core/block.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/block.ts b/core/block.ts index 2931dd6ac..d9552a8a6 100644 --- a/core/block.ts +++ b/core/block.ts @@ -144,13 +144,13 @@ export class Block implements IASTNodeLocation, IDeletable { * An optional function that reconfigures the block based on the contents of * the mutator dialog. */ - compose?: ((p1: Block) => void)|null = null; + compose?: ((p1: Block) => void)|null = undefined; /** * An optional function that populates the mutator's dialog with * this block's components. */ - decompose?: ((p1: Workspace) => Block)|null = null; + decompose?: ((p1: Workspace) => Block)|null = undefined; id: string; // AnyDuringMigration because: Type 'null' is not assignable to type // 'Connection'.