source: trip-planner-front/node_modules/cli-cursor/index.d.ts@ 1ad8e64

Last change on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 796 bytes
Line 
1/// <reference types="node"/>
2
3/**
4Show cursor.
5
6@param stream - Default: `process.stderr`.
7
8@example
9```
10import * as cliCursor from 'cli-cursor';
11
12cliCursor.show();
13```
14*/
15export function show(stream?: NodeJS.WritableStream): void;
16
17/**
18Hide cursor.
19
20@param stream - Default: `process.stderr`.
21
22@example
23```
24import * as cliCursor from 'cli-cursor';
25
26cliCursor.hide();
27```
28*/
29export function hide(stream?: NodeJS.WritableStream): void;
30
31/**
32Toggle cursor visibility.
33
34@param force - Is useful to show or hide the cursor based on a boolean.
35@param stream - Default: `process.stderr`.
36
37@example
38```
39import * as cliCursor from 'cli-cursor';
40
41const unicornsAreAwesome = true;
42cliCursor.toggle(unicornsAreAwesome);
43```
44*/
45export function toggle(force?: boolean, stream?: NodeJS.WritableStream): void;
Note: See TracBrowser for help on using the repository browser.