mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 11:51:01 +01:00
04b686ca39
* first * v0.1 * faster * enhanced type * tsx * jsx * split * fix * denoify * fix: compatible with node:fs/promises * rename * fixed * for bun * add Deno * add Deno * fix * revert * 1.0 * denoify * remove message * ToSSGResult * fix comment * fix comment
20 lines
668 B
TypeScript
20 lines
668 B
TypeScript
declare namespace Deno {
|
|
/**
|
|
* Creates a new directory with the specified path.
|
|
*
|
|
* @param path The path to create a directory.
|
|
* @param options Options for creating a directory.
|
|
* @returns A promise that resolves when the directory is created.
|
|
*/
|
|
export function mkdir(path: string, options?: { recursive?: boolean }): Promise<void>
|
|
|
|
/**
|
|
* Write a new file, with the specified path and data.
|
|
*
|
|
* @param path The path to the file to write.
|
|
* @param data The data to write to the file.
|
|
* @returns A promise that resolves when the file is written.
|
|
*/
|
|
export function writeFile(path: string, data: Uint8Array): Promise<void>
|
|
}
|