diff options
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; |