feat: URL support in Deno filesystem methods (#5990)

This commit is contained in:
River 2020-06-12 02:36:20 +10:00 committed by GitHub
parent 813210d433
commit 818a801092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 741 additions and 66 deletions

View file

@ -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> {