mirror of
https://github.com/denoland/deno.git
synced 2025-09-28 05:04:48 +00:00
feat: URL support in Deno filesystem methods (#5990)
This commit is contained in:
parent
813210d433
commit
818a801092
28 changed files with 741 additions and 66 deletions
|
@ -12,7 +12,7 @@ export interface WriteFileOptions {
|
|||
}
|
||||
|
||||
export function writeFileSync(
|
||||
path: string,
|
||||
path: string | URL,
|
||||
data: Uint8Array,
|
||||
options: WriteFileOptions = {}
|
||||
): void {
|
||||
|
@ -42,7 +42,7 @@ export function writeFileSync(
|
|||
}
|
||||
|
||||
export async function writeFile(
|
||||
path: string,
|
||||
path: string | URL,
|
||||
data: Uint8Array,
|
||||
options: WriteFileOptions = {}
|
||||
): Promise<void> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue