mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 19:43:20 +08:00
[shell-escape]: Add types (#19449)
This commit is contained in:
committed by
Mohamed Hegazy
parent
ed8dad43c5
commit
1939d342ec
10
types/shell-escape/index.d.ts
vendored
Normal file
10
types/shell-escape/index.d.ts
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
// Type definitions for shell-escape 0.2
|
||||
// Project: https://github.com/xxorax/node-shell-escape
|
||||
// Definitions by: Miloslav Nenadál <https://github.com/nenadalm>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
type ShellEscape = (a: string[]) => string;
|
||||
|
||||
declare const shellEscape: ShellEscape;
|
||||
|
||||
export = shellEscape;
|
||||
5
types/shell-escape/shell-escape-tests.ts
Normal file
5
types/shell-escape/shell-escape-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as shellEscape from 'shell-escape';
|
||||
|
||||
() => {
|
||||
const stringRes = shellEscape(['cp', '-r', 'src/', 'dest/']);
|
||||
};
|
||||
22
types/shell-escape/tsconfig.json
Normal file
22
types/shell-escape/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"shell-escape-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/shell-escape/tslint.json
Normal file
1
types/shell-escape/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user