mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Added declarations for 'newline-remove'
This commit is contained in:
11
types/newline-remove/index.d.ts
vendored
Normal file
11
types/newline-remove/index.d.ts
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
// Type definitions for newline-remove 1.0
|
||||
// Project: https://github.com/yoshuawuyts/newline-remove
|
||||
// Definitions by: OpenByteDev <https://github.com/OpenByteDev>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
* Strip all newlines from the given value
|
||||
*/
|
||||
declare function removeNewlines(val: string): string;
|
||||
|
||||
export = removeNewlines;
|
||||
4
types/newline-remove/newline-remove-tests.ts
Normal file
4
types/newline-remove/newline-remove-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import removeNewline = require('newline-remove');
|
||||
|
||||
removeNewline('foo\n bar\n');
|
||||
// => 'foo bar'
|
||||
24
types/newline-remove/tsconfig.json
Normal file
24
types/newline-remove/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"newline-remove-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/newline-remove/tslint.json
Normal file
3
types/newline-remove/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user