import { expectAssignable } from 'tsd' import BodyReadable from '../../types/readable' import { Blob } from 'buffer' expectAssignable(new BodyReadable()) { const readable = new BodyReadable() // dump expectAssignable>(readable.dump()) expectAssignable>(readable.dump({ limit: 123 })) // text expectAssignable>(readable.text()) // json expectAssignable>(readable.json()) // blob expectAssignable>(readable.blob()) // arrayBuffer expectAssignable>(readable.arrayBuffer()) // formData expectAssignable>(readable.formData()) // bodyUsed expectAssignable(readable.bodyUsed) // body expectAssignable(readable.body) }