From 31979737a0ffccc9db07bce8bbb6f88da5ca76cb Mon Sep 17 00:00:00 2001 From: Vortex Date: Wed, 14 Feb 2024 12:03:53 -0600 Subject: [PATCH] Formatting --- src/emulation/callbacks.ts | 6 +++++- src/emulation/promises.ts | 2 +- src/emulation/shared.ts | 5 ++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/emulation/callbacks.ts b/src/emulation/callbacks.ts index 087669f95..d9426d53c 100644 --- a/src/emulation/callbacks.ts +++ b/src/emulation/callbacks.ts @@ -503,7 +503,11 @@ export function readlink(path: PathLike, callback: TwoArgCallback & any) export function readlink(path: PathLike, options: BufferEncodingOption, callback: TwoArgCallback): void; export function readlink(path: PathLike, options: BaseEncodingOptions | string, callback: TwoArgCallback): void; export function readlink(path: PathLike, options: BaseEncodingOptions | BufferEncoding, callback: TwoArgCallback): void; -export function readlink(path: PathLike, options: BufferEncodingOption | BaseEncodingOptions | string | TwoArgCallback, callback: TwoArgCallback | TwoArgCallback = nop): void { +export function readlink( + path: PathLike, + options: BufferEncodingOption | BaseEncodingOptions | string | TwoArgCallback, + callback: TwoArgCallback | TwoArgCallback = nop +): void { callback = typeof options == 'function' ? options : callback; promises .readlink(path) diff --git a/src/emulation/promises.ts b/src/emulation/promises.ts index c5fb7d31e..3cc559b9f 100644 --- a/src/emulation/promises.ts +++ b/src/emulation/promises.ts @@ -549,7 +549,7 @@ export async function lutimes(path: PathLike, atime: number | Date, mtime: numbe * @param path * @param options * @return resolved path - * + * * Note: This *Can not* use doOp since doOp depends on it */ export async function realpath(path: PathLike, options?: BaseEncodingOptions): Promise { diff --git a/src/emulation/shared.ts b/src/emulation/shared.ts index b8716ab3c..297813720 100644 --- a/src/emulation/shared.ts +++ b/src/emulation/shared.ts @@ -223,14 +223,14 @@ export function initialize(mountMapping: MountMapping): void { /** * Types supports as path parameters. - * + * * In the future, maybe support URL? */ export type PathLike = string; /** * @internal - * + * * Converts any Buffer in T to Uint8Array */ export type BufferToUint8Array = T extends Buffer @@ -240,4 +240,3 @@ export type BufferToUint8Array = T extends Buffer : T extends object ? { [K in keyof T]: BufferToUint8Array } : T; -