summaryrefslogtreecommitdiff
path: root/js/file_info.ts
diff options
context:
space:
mode:
authorztplz <mysticzt@gmail.com>2018-10-23 03:16:15 +0800
committerRyan Dahl <ry@tinyclouds.org>2018-10-23 04:42:22 -0700
commitde85f9443598ba5a75102be77f6f27a5cf0c0a9a (patch)
treea128bc963227cf226c34b89451fd92df81e3296c /js/file_info.ts
parent64f0dfd50e3eb6db1a0e66aec6b1c01a4ef76cea (diff)
improve file_info.ts
Diffstat (limited to 'js/file_info.ts')
-rw-r--r--js/file_info.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/file_info.ts b/js/file_info.ts
index 029527ab1..785cefc20 100644
--- a/js/file_info.ts
+++ b/js/file_info.ts
@@ -5,8 +5,6 @@ import * as msg from "gen/msg_generated";
* `statSync`, `lstatSync`.
*/
export interface FileInfo {
- readonly _isFile: boolean;
- readonly _isSymlink: boolean;
/** The size of the file, in bytes. */
len: number;
/** The last modification time of the file. This corresponds to the `mtime`
@@ -53,8 +51,8 @@ export interface FileInfo {
// @internal
export class FileInfoImpl implements FileInfo {
- readonly _isFile: boolean;
- readonly _isSymlink: boolean;
+ private readonly _isFile: boolean;
+ private readonly _isSymlink: boolean;
len: number;
modified: number | null;
accessed: number | null;