gcanti / io-ts-types

A collection of codecs and combinators for use with io-ts
https://gcanti.github.io/io-ts-types/
MIT License
311 stars 40 forks source link

ArrayBuffer support #150

Closed ingun37 closed 3 years ago

ingun37 commented 3 years ago

🚀 Feature request

Current Behavior

I wish io-ts supported ArrayBuffer as one of default codecs so I can do something like

import iots from "io-ts"
const SomeResponse = iots.type({
  bytes: iots.arrayBuffer
  status: iots.number
});

Desired Behavior

Codec for ArrayBuffer.

Suggested Solution

Who does this impact? Who is this for?

Describe alternatives you've considered

Additional context

Your environment

Software Version(s)
io-ts 2.2.13
fp-ts 2.9.3
TypeScript 4.1.3