diff options
author | River <22485304+actual-size@users.noreply.github.com> | 2020-06-12 02:36:20 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 12:36:20 -0400 |
commit | 818a8010928cb8cef0b7043bd881c8cdce9b6efc (patch) | |
tree | 1502e74c9eb01901df8da118257d60d4f962b0e4 /cli/js/write_file.ts | |
parent | 813210d4337bf6e174f1da1f1a6c6fb9b073afa2 (diff) |
feat: URL support in Deno filesystem methods (#5990)
Diffstat (limited to 'cli/js/write_file.ts')
-rw-r--r-- | cli/js/write_file.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/js/write_file.ts b/cli/js/write_file.ts index 6961b78ea..3106c48ef 100644 --- a/cli/js/write_file.ts +++ b/cli/js/write_file.ts @@ -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> { |