#JSDoc Errors
1 messages · Page 1 of 1 (latest)
Debug Result
There are 3 errors in this [code](#1106049783338127402 message):
[96mmessage.js[0m:[93m32[0m:[93m74[0m - [91merror[0m[90m TS2345: [0mArgument of type 'string' is not assignable to parameter of type 'keyof BlockStateSuperset | `${string}:${string}`'.
[7m32[0m const permutation = BlockPermutation.resolve(blockId).withProperty(propertyName, propertyValue);
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mmessage.js[0m:[93m75[0m:[93m12[0m - [91merror[0m[90m TS2554: [0mExpected 3 arguments, but got 2.
[7m75[0m this.setProperties(block, properties);
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[0m
[96mmessage.js[0m:[93m61[0m:[93m37[0m
[7m61[0m setProperties(block, properties,values) {
[7m [0m [96m ~~~~~~[0m
An argument for 'values' was not provided.
[96mmessage.js[0m:[93m84[0m:[93m18[0m - [91merror[0m[90m TS2552: [0mCannot find name 'BPermutation'. Did you mean 'permutation'?
[7m84[0m * @returns {BPermutation} The newly created block permutation.
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mmessage.js[0m:[93m87[0m:[93m13[0m
[7m87[0m const permutation = this.addPermutation(block.typeId, propertyName, propertyValue);
[7m [0m [96m ~~~~~~~~~~~[0m
'permutation' is declared here.
@native timber
Debug Result
There are 2 errors in this [code](#1106049783338127402 message):
[96mmessage.js[0m:[93m35[0m:[93m76[0m - [91merror[0m[90m TS2345: [0mArgument of type 'string' is not assignable to parameter of type 'keyof BlockStateSuperset | `${string}:${string}`'.
[7m35[0m const permutation = BlockPermutation.resolve(blockId).withProperty(propertyName, propertyValue);
[7m [0m [91m ~~~~~~~~~~~~[0m
[96mmessage.js[0m:[93m67[0m:[93m81[0m - [91merror[0m[90m TS2345: [0mArgument of type 'string' is not assignable to parameter of type 'keyof BlockStateSuperset | `${string}:${string}`'.
[7m67[0m const permutation = BlockPermutation.resolve(block.typeId).withProperty(propertyName, propertyValue);
[7m [0m [91m ~~~~~~~~~~~~[0m
alr, then change
/**
* @param {`${string}:${string}`} propertyName
*/