Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 06 Jul 16:30
· 7 commits to main since this release
2d7633b

Patch Changes

  • 163dc33: State stream async generator now returns correct type.

    Previously, when trying to use the an async iteratable
    in a for await loop, the value would be typed as unknown.
    It is now correctly typed with the typing of the State generic.

    const count = new State(0);
    
    for await (const value of count) {
      value;
      // ^? const value:number
    }