diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-04-25 01:01:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-25 01:01:25 +0200 |
commit | 912a57f6a20c632c306f4e044df7618a3971abbf (patch) | |
tree | aa09526d214d2ab3f8d6e5c2baef605ba6d8a24a /cli/js/web/console.ts | |
parent | 4a8d25646aa58e3e59d622e69c41822b40415c46 (diff) |
change type of stdio handles in JS api (#4891)
Diffstat (limited to 'cli/js/web/console.ts')
-rw-r--r-- | cli/js/web/console.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cli/js/web/console.ts b/cli/js/web/console.ts index 3a274e086..7f320398c 100644 --- a/cli/js/web/console.ts +++ b/cli/js/web/console.ts @@ -1,7 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { isTypedArray, TypedArray } from "./util.ts"; import { TextEncoder } from "./text_encoding.ts"; -import { File, stdout } from "../files.ts"; +import { SyncWriter } from "../io.ts"; +import { stdout } from "../files.ts"; import { cliTable } from "./console_table.ts"; import { exposeForTest } from "../internals.ts"; import { PromiseState } from "./promise.ts"; @@ -38,12 +39,12 @@ export class CSI { /* eslint-disable @typescript-eslint/no-use-before-define */ -function cursorTo(stream: File, _x: number, _y?: number): void { +function cursorTo(stream: SyncWriter, _x: number, _y?: number): void { const uint8 = new TextEncoder().encode(CSI.kClear); stream.writeSync(uint8); } -function clearScreenDown(stream: File): void { +function clearScreenDown(stream: SyncWriter): void { const uint8 = new TextEncoder().encode(CSI.kClearScreenDown); stream.writeSync(uint8); } |