diff options
author | Steven Guerrero <stephenguerrero43@gmail.com> | 2020-11-26 07:50:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 13:50:08 +0100 |
commit | 9042fcc12e7774cdd0ca3a5d08918a07dae8102b (patch) | |
tree | 8b5ff11412aae9bb714e0bb0b9b0358db64a8657 /std/node/_fs/_fs_common.ts | |
parent | 60e980c78180ee3b0a14d692307be275dc181c8d (diff) |
feat(std/node/stream): Add Duplex, Transform, Passthrough, pipeline, finished and promises (#7940)
Diffstat (limited to 'std/node/_fs/_fs_common.ts')
-rw-r--r-- | std/node/_fs/_fs_common.ts | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/std/node/_fs/_fs_common.ts b/std/node/_fs/_fs_common.ts index 0b1ffe0bb..6fe77d54c 100644 --- a/std/node/_fs/_fs_common.ts +++ b/std/node/_fs/_fs_common.ts @@ -1,21 +1,13 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { notImplemented } from "../_utils.ts"; +import { + BinaryEncodings, + Encodings, + notImplemented, + TextEncodings, +} from "../_utils.ts"; export type CallbackWithError = (err?: Error | null) => void; -export type TextEncodings = - | "ascii" - | "utf8" - | "utf-8" - | "utf16le" - | "ucs2" - | "ucs-2" - | "base64" - | "latin1" - | "hex"; -export type BinaryEncodings = "binary"; -export type Encodings = TextEncodings | BinaryEncodings; - export interface FileOptions { encoding?: Encodings; flag?: string; |