🤖 Merge PR #58882 Add types for console-clear by @leonzalion

* Add types for console-clear

* fix tslint.json

* run prettier

* use export = syntax
This commit is contained in:
Leon Si
2022-02-21 14:08:15 -05:00
committed by GitHub
parent 976163796c
commit bb78d6a5ac
4 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
import consoleClear = require('console-clear');
consoleClear();
consoleClear(true);

8
types/console-clear/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definitions for console-clear 1.1
// Project: https://github.com/lukeed/console-clear
// Definitions by: Leon Si <https://github.com/leonzalion>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function consoleClear(isSoft?: boolean): void;
export = consoleClear;

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"console-clear-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "@definitelytyped/dtslint/dt.json" }