From 7ce5be11929c6b832a5837da861886f21ef20293 Mon Sep 17 00:00:00 2001 From: James Prevett Date: Mon, 11 Nov 2024 22:22:19 -0600 Subject: [PATCH] Added type parameterized `fs` to `File` --- src/file.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/file.ts b/src/file.ts index 1e00b64a..19e4297c 100644 --- a/src/file.ts +++ b/src/file.ts @@ -145,7 +145,7 @@ export function isExclusive(flag: string): boolean { return flag.indexOf('x') !== -1; } -export abstract class File { +export abstract class File { public constructor( /** * @internal @@ -269,7 +269,7 @@ export abstract class File { * An implementation of `File` that operates completely in-memory. * `PreloadFile`s are backed by a `Uint8Array`. */ -export class PreloadFile extends File { +export class PreloadFile extends File { /** * Current position */ @@ -290,11 +290,7 @@ export class PreloadFile extends File { * Note that, if contents is specified, it will be mutated by the file. */ public constructor( - /** - * The file system that created the file. - * @internal - */ - public fs: FS, + fs: FS, path: string, public readonly flag: string, public readonly stats: Stats,