From 4a47ffa5c455be213523cb1a7211a0a454b5fcf8 Mon Sep 17 00:00:00 2001 From: bartOssh Date: Mon, 2 Mar 2020 17:44:46 +0100 Subject: seek should return cursor position (#4211) --- cli/js/lib.deno.shared_globals.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cli/js/lib.deno.shared_globals.d.ts') diff --git a/cli/js/lib.deno.shared_globals.d.ts b/cli/js/lib.deno.shared_globals.d.ts index bec9469c5..fef155f3d 100644 --- a/cli/js/lib.deno.shared_globals.d.ts +++ b/cli/js/lib.deno.shared_globals.d.ts @@ -1191,13 +1191,14 @@ declare namespace __io { * relative to the start of the file and an error, if any. * * Seeking to an offset before the start of the file is an error. Seeking to - * any positive offset is legal, but the behavior of subsequent I/O - * operations on the underlying object is implementation-dependent. + * any positive offset is legal, but the behavior of subsequent I/O operations + * on the underlying object is implementation-dependent. + * It returns the cursor position. */ - seek(offset: number, whence: SeekMode): Promise; + seek(offset: number, whence: SeekMode): Promise; } export interface SyncSeeker { - seekSync(offset: number, whence: SeekMode): void; + seekSync(offset: number, whence: SeekMode): number; } export interface ReadCloser extends Reader, Closer {} export interface WriteCloser extends Writer, Closer {} -- cgit v1.2.3