epub.js icon indicating copy to clipboard operation
epub.js copied to clipboard

Typescript types wrong for spine

Open InputNeuron opened this issue 6 years ago • 1 comments

The typescript types are wrong for book.loaded.spine.

It says it's an array but it's not... it returns an object which has internal spineItems or items...

image

InputNeuron avatar Jun 03 '20 14:06 InputNeuron

book.d.ts:

  loaded: {
      ...
      spine: Promise<SpineItem[]>,
      ...

loaded values are all promises

mikkelvp avatar Jun 04 '20 13:06 mikkelvp