diff options
author | bartOssh <blenart@eagleeyenetworks.com> | 2020-03-02 17:44:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 11:44:46 -0500 |
commit | 4a47ffa5c455be213523cb1a7211a0a454b5fcf8 (patch) | |
tree | 6359cf99d149461ae1435481cc0c919ee357b36e /cli/js/lib.deno.shared_globals.d.ts | |
parent | c14cc84a85224870d2188df1a3741bf02eb8c5da (diff) |
seek should return cursor position (#4211)
Diffstat (limited to 'cli/js/lib.deno.shared_globals.d.ts')
-rw-r--r-- | cli/js/lib.deno.shared_globals.d.ts | 9 |
1 files changed, 5 insertions, 4 deletions
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<void>; + seek(offset: number, whence: SeekMode): Promise<number>; } 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 {} |