(name: string, contents: string)
| 475 | } |
| 476 | |
| 477 | export function buildTextFile(name: string, contents: string): File { |
| 478 | return buildReadableFile({ name, contents, type: 'text/plain' }); |
| 479 | } |
| 480 | |
| 481 | export function buildBinaryFile(name: string, contents: string): File { |
| 482 | return buildReadableFile({ name, contents, type: 'application/octet-stream' }); |