DefinitelyTyped/types/clear/index.d.ts
Connor Fitzgerald d2ff8e17ea Adding @types/clear (#37102)
* WIP updating oracledb typings to 3.1.2

* WIP

* SODA WIP

* .d.ts done. Needs tests writing

* Finished

* Added pool stats methods. Fixed bug with BindParameter being string or number

* Making _enableStats optional

* Allow parameters to be nulled

* Capitalise namespace

* Update contribution URL

* Revert "Update contribution URL"

This reverts commit f329d293dceaf44832ae3424753c1ccb98378df2.

* Update contribution URL

* Change poolAlias to string. SODA not in preview. Add BindParameters interface

* getRows should not return void

* Added pino-std-serializers

* Adding @types/clear
2019-07-24 13:05:52 -07:00

24 lines
745 B
TypeScript

// Type definitions for clear 0.1
// Project: https://github.com/bahamas10/node-clear#readme
// Definitions by: Connor Fitzgerald <https://github.com/connorjayfitzgerald>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
interface ClearOptions {
/**
* Setting this to false will prevent this module from clearing the screen.
* This will not remove anything from the screen, but instead move your cursor
* to position 0,0. Much like printing a \r instead of a \n to reset the current line of output.
*
* @default true
*/
fullClear?: boolean;
}
/**
* Clear the terminal screen if possible.
*/
declare function clear(opts?: ClearOptions): void;
export = clear;