From 912a57f6a20c632c306f4e044df7618a3971abbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 25 Apr 2020 01:01:25 +0200 Subject: change type of stdio handles in JS api (#4891) --- cli/js/web/console.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cli/js/web') 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); } -- cgit v1.2.3