Skip to content

iso-error-web@2.4.1

Choose a tag to compare

@unional unional released this 25 Sep 23:18
· 104 commits to main since this release

Patch Changes

  • 42df780: Relax the type of HttpStatusText to Record<number, string>.
    This allows user to use it by passing in an number:

    // `Response['status']: number`
    const response: Response = await fetch(...)
    
    const status = HttpStatusText[response.status]