Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is workbook.commit() still a promise or not #548

Closed
@Sjonnie2nd

Description

@Sjonnie2nd

The docs mention:
// Finished the workbook.
workbook.commit().then(function() { /* the stream has been written */ });

I used it like:
book.commit().then(() => response.end())

After I upgraded types/exceljs to ^0.5.2 typescript warned me for commit() not giving back a promise.

So I changed it to:
book.commit();
response.end();
After this things went wrong because response.end() was breaking the stream too early.
After removing response.end() it worked fine. Perhaps commit() called response,end() itself.

So 3 questions:

  • Need the docs be adjusted: commit() no longer brings a response?
  • Or is types/exceljs wrong here?
  • Does commit() really end the response?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp