Unverified Commit 546a20d9 authored by Fróði Karlsson's avatar Fróði Karlsson
Browse files

Narrow `decodeText` type for esm build

parent 86f47717
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
const textDecoder = new TextDecoder();
export const decodeText = (bytes: ArrayBufferView | ArrayBuffer): string =>
export const decodeText = (bytes: DataView | Uint8Array): string =>
  textDecoder.decode(bytes);

const textEncoder = new TextEncoder();