TurboWarp / types

Type definitions for the Scratch VM and editor
https://turbowarp.github.io/types/
Apache License 2.0
8 stars 15 forks source link

`sprite.clones` and `sprite.soundBank` are missing #3

Closed seheon99 closed 2 years ago

seheon99 commented 2 years ago

code:

const myCat = vm.runtime.getSpriteTargetByName('Cat');
console.log(myCat.sprite);

log:

Sprite {
  runtime: Runtime {},
  blocks: Blocks {},
  name: 'Cat',
  costumes_: [],
  sounds: [],
  clones: [],
  soundBank: null
}

But Sprite interface isn't have clones and soundBank properties: https://github.com/TurboWarp/types/blob/b57ba60aa4b993ec230ebed8fe83e35601372271/types/scratch-vm.d.ts#L73-L79