mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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
This commit is contained in:
parent
e7080fe860
commit
d2ff8e17ea
21
types/clear/clear-tests.ts
Normal file
21
types/clear/clear-tests.ts
Normal file
@ -0,0 +1,21 @@
|
||||
// ------------------------------- NODE MODULES -------------------------------
|
||||
|
||||
import clear from 'clear';
|
||||
|
||||
// ------------------------------ CUSTOM MODULES ------------------------------
|
||||
|
||||
// -------------------------------- VARIABLES ---------------------------------
|
||||
|
||||
// ----------------------------- FILE DEFINITION ------------------------------
|
||||
|
||||
clear();
|
||||
|
||||
clear({});
|
||||
|
||||
clear({
|
||||
fullClear: true,
|
||||
});
|
||||
|
||||
clear({
|
||||
fullClear: false,
|
||||
});
|
||||
23
types/clear/index.d.ts
vendored
Normal file
23
types/clear/index.d.ts
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
// 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;
|
||||
24
types/clear/tsconfig.json
Normal file
24
types/clear/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"clear-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/clear/tslint.json
Normal file
1
types/clear/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user