mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
🤖 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:
4
types/console-clear/console-clear-tests.ts
Normal file
4
types/console-clear/console-clear-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import consoleClear = require('console-clear');
|
||||
|
||||
consoleClear();
|
||||
consoleClear(true);
|
||||
8
types/console-clear/index.d.ts
vendored
Normal file
8
types/console-clear/index.d.ts
vendored
Normal 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;
|
||||
23
types/console-clear/tsconfig.json
Normal file
23
types/console-clear/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/console-clear/tslint.json
Normal file
1
types/console-clear/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "@definitelytyped/dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user