diff --git a/libs/screen/fieldeditors.ts b/libs/screen/fieldeditors.ts index 5e5ad6ede..3805b054b 100644 --- a/libs/screen/fieldeditors.ts +++ b/libs/screen/fieldeditors.ts @@ -83,10 +83,11 @@ namespace images { * An image * @param image the image */ - //% blockId=image_picker block="%image" shim=TD_ID - //% image.fieldEditor="images" - //% image.fieldOptions.columns=6 - //% image.fieldOptions.width=600 + //% blockId=image_picker block="$image" shim=TD_ID + //% image.fieldEditor="sprite" + //% image.fieldOptions.taggedTemplate="img" + //% image.fieldOptions.decompileIndirectFixedInstances="true" + //% image.fieldOptions.decompileArgumentAsString="true" //% weight=0 group="Create" export function _image(image: Image): Image { return image; diff --git a/sim/tsconfig.json b/sim/tsconfig.json index 34990d908..8964f3225 100644 --- a/sim/tsconfig.json +++ b/sim/tsconfig.json @@ -13,7 +13,7 @@ "newLine": "LF", "declaration": true, "sourceMap": false, - "typeRoots": ["../node_modules/@types"] + "types": [] }, "include": [ "../libs/*/sim/*.ts"