diff options
Diffstat (limited to 'cli/js/ops/fs')
-rw-r--r-- | cli/js/ops/fs/make_temp.ts | 8 | ||||
-rw-r--r-- | cli/js/ops/fs/open.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/fs/read_link.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/fs/realpath.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/fs/seek.ts | 2 |
5 files changed, 6 insertions, 10 deletions
diff --git a/cli/js/ops/fs/make_temp.ts b/cli/js/ops/fs/make_temp.ts index aeab9afc7..85dea5f20 100644 --- a/cli/js/ops/fs/make_temp.ts +++ b/cli/js/ops/fs/make_temp.ts @@ -11,9 +11,7 @@ export function makeTempDirSync(options: MakeTempOptions = {}): string { return sendSync("op_make_temp_dir", options); } -export async function makeTempDir( - options: MakeTempOptions = {} -): Promise<string> { +export function makeTempDir(options: MakeTempOptions = {}): Promise<string> { return sendAsync("op_make_temp_dir", options); } @@ -21,8 +19,6 @@ export function makeTempFileSync(options: MakeTempOptions = {}): string { return sendSync("op_make_temp_file", options); } -export async function makeTempFile( - options: MakeTempOptions = {} -): Promise<string> { +export function makeTempFile(options: MakeTempOptions = {}): Promise<string> { return sendAsync("op_make_temp_file", options); } diff --git a/cli/js/ops/fs/open.ts b/cli/js/ops/fs/open.ts index 2ac5c715c..87696935f 100644 --- a/cli/js/ops/fs/open.ts +++ b/cli/js/ops/fs/open.ts @@ -26,7 +26,7 @@ export function openSync( return sendSync("op_open", { path, options, openMode, mode }); } -export async function open( +export function open( path: string, openMode: OpenMode | undefined, options: OpenOptions | undefined diff --git a/cli/js/ops/fs/read_link.ts b/cli/js/ops/fs/read_link.ts index 403cd6def..4ac8db3db 100644 --- a/cli/js/ops/fs/read_link.ts +++ b/cli/js/ops/fs/read_link.ts @@ -5,6 +5,6 @@ export function readlinkSync(path: string): string { return sendSync("op_read_link", { path }); } -export async function readlink(path: string): Promise<string> { +export function readlink(path: string): Promise<string> { return sendAsync("op_read_link", { path }); } diff --git a/cli/js/ops/fs/realpath.ts b/cli/js/ops/fs/realpath.ts index e68e32bf0..e8a904079 100644 --- a/cli/js/ops/fs/realpath.ts +++ b/cli/js/ops/fs/realpath.ts @@ -5,6 +5,6 @@ export function realpathSync(path: string): string { return sendSync("op_realpath", { path }); } -export async function realpath(path: string): Promise<string> { +export function realpath(path: string): Promise<string> { return sendAsync("op_realpath", { path }); } diff --git a/cli/js/ops/fs/seek.ts b/cli/js/ops/fs/seek.ts index dfac9bf63..c7e4c9172 100644 --- a/cli/js/ops/fs/seek.ts +++ b/cli/js/ops/fs/seek.ts @@ -10,7 +10,7 @@ export function seekSync( return sendSync("op_seek", { rid, offset, whence }); } -export async function seek( +export function seek( rid: number, offset: number, whence: SeekMode |