diff options
author | 2022-06-30 19:25:56 -0700 | |
---|---|---|
committer | 2022-06-30 19:25:56 -0700 | |
commit | c9f1d146c20fbdd13f31f8784a083512e1740c26 (patch) | |
tree | d1f09b1f48341a257df77e6f129397b97fd1b698 | |
parent | 180068e46cf0da8fb076bb51d230aaac1eb01df4 (diff) | |
download | bun-c9f1d146c20fbdd13f31f8784a083512e1740c26.tar.gz bun-c9f1d146c20fbdd13f31f8784a083512e1740c26.tar.zst bun-c9f1d146c20fbdd13f31f8784a083512e1740c26.zip |
Fix incorrect type
-rw-r--r-- | types/bun/bun.d.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/types/bun/bun.d.ts b/types/bun/bun.d.ts index 76d541f62..edae2acf4 100644 --- a/types/bun/bun.d.ts +++ b/types/bun/bun.d.ts @@ -329,7 +329,13 @@ declare module "bun" { * Fast incremental writer that becomes an ArrayBuffer on end(). */ export class ArrayBufferSink implements Sink<ArrayBuffer> { - constructor({ stream = false, asUint8Array = false, highWaterMark = 2048 }); + constructor(); + + start({ + stream = false, + asUint8Array = false, + highWaterMark = 2048, + } = {}): void; write(chunk: string | ArrayBufferView | ArrayBuffer): number; drain(): number; |