Skip to content

@types/node-fetch has incorrect blob() type #33721

Description

@pauldraper

The Body.blob() return type is given as Buffer, but that is incorrect.

fetch('https://example.com').then(b => b.blob()).then(b => console.log(b.toString('binary')));

Expected: '<!doctype html>...'
Actual: '[object Blob]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions