#JSDoc Errors

1 messages · Page 1 of 1 (latest)

native timber
#

when I run the debugger. it gives off this error

eternal notchBOT
#
Debug Result

There are 3 errors in this [code](#1106049783338127402 message):

message.js:32:74 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'keyof BlockStateSuperset | `${string}:${string}`'.

32       const permutation = BlockPermutation.resolve(blockId).withProperty(propertyName, propertyValue);
                                                                            ~~~~~~~~~~~~
message.js:75:12 - error TS2554: Expected 3 arguments, but got 2.

75       this.setProperties(block, properties);
              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  message.js:61:37
    61     setProperties(block, properties,values) {
                                           ~~~~~~
    An argument for 'values' was not provided.
message.js:84:18 - error TS2552: Cannot find name 'BPermutation'. Did you mean 'permutation'?

84      * @returns {BPermutation} The newly created block permutation.
                    ~~~~~~~~~~~~

  message.js:87:13
    87       const permutation = this.addPermutation(block.typeId, propertyName, propertyValue);
                   ~~~~~~~~~~~
    'permutation' is declared here.

acoustic glade
eternal notchBOT
#
Debug Result

There are 2 errors in this [code](#1106049783338127402 message):

message.js:35:76 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'keyof BlockStateSuperset | `${string}:${string}`'.

35         const permutation = BlockPermutation.resolve(blockId).withProperty(propertyName, propertyValue);
                                                                              ~~~~~~~~~~~~
message.js:67:81 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'keyof BlockStateSuperset | `${string}:${string}`'.

67         const permutation = BlockPermutation.resolve(block.typeId).withProperty(propertyName, propertyValue);
                                                                                   ~~~~~~~~~~~~

acoustic glade
#

alr, then change

/**
* @param {`${string}:${string}`} propertyName
*/