(bytes: Uint8Array)
| 588 | // views whose `.buffer` is `SharedArrayBuffer | ArrayBuffer` under strict |
| 589 | // lib.dom typings. |
| 590 | const toArrayBuffer = (bytes: Uint8Array): ArrayBuffer => { |
| 591 | const copy = new ArrayBuffer(bytes.byteLength); |
| 592 | new Uint8Array(copy).set(bytes); |
| 593 | return copy; |
| 594 | }; |
| 595 | |
| 596 | const formPartFromToolFile = ( |
| 597 | file: ToolFileValue, |
no test coverage detected